summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/cell.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-05-17 04:03:16 +0200
committerUros Majstorovic <majstor@majstor.org>2020-05-17 04:03:16 +0200
commit5d157b4f7ecea4793c9da5c33a890d4ea4afc545 (patch)
tree6309b33a6d8e5f6beb068e59e001e66c9f677d2a /code/esp32/components/eos/cell.c
parent1cafcbd398fa0e5a4afb1ade33ecf21694cde235 (diff)
power management implemented; net protocol change
Diffstat (limited to 'code/esp32/components/eos/cell.c')
-rw-r--r--code/esp32/components/eos/cell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/esp32/components/eos/cell.c b/code/esp32/components/eos/cell.c
index 138a4e4..2da1450 100644
--- a/code/esp32/components/eos/cell.c
+++ b/code/esp32/components/eos/cell.c
@@ -14,7 +14,7 @@ static void cell_handler(unsigned char _mtype, unsigned char *buffer, uint16_t s
switch (mtype) {
case EOS_CELL_MTYPE_DATA:
- eos_modem_write(buffer+1, size-1);
+ if (eos_modem_get_mode() == EOS_CELL_UART_MODE_RELAY) eos_modem_write(buffer+1, size-1);
break;
case EOS_CELL_MTYPE_DATA_START:
cell_mode = eos_modem_get_mode();