diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-02-24 19:54:18 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-02-24 19:54:18 +0100 |
commit | 4dea6262b57f614cabd5cf4fa96c1e3d83c45fb4 (patch) | |
tree | 765eb9b4322c6158089232cccf6a30eb62ba90d9 /fw/esp32/components/eos/cell.c | |
parent | 3050565531af2b3a09f2213893f10c64cf9fe43f (diff) |
upgraded to esp-idf 4.2
Diffstat (limited to 'fw/esp32/components/eos/cell.c')
-rw-r--r-- | fw/esp32/components/eos/cell.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fw/esp32/components/eos/cell.c b/fw/esp32/components/eos/cell.c index 11a96e8..886cc7a 100644 --- a/fw/esp32/components/eos/cell.c +++ b/fw/esp32/components/eos/cell.c @@ -32,7 +32,11 @@ static void _cell_handler(unsigned char _mtype, unsigned char *buffer, uint16_t mtype = buffer[0]; switch (mtype & EOS_CELL_MTYPE_MASK) { case EOS_CELL_MTYPE_DEV: - switch (mtype) { + switch (mtype & ~EOS_CELL_MTYPE_MASK) { + case EOS_CELL_MTYPE_RESET: + eos_modem_reset(); + break; + case EOS_CELL_MTYPE_UART_DATA: if (eos_modem_get_mode() == EOS_CELL_UART_MODE_RELAY) eos_modem_write(buffer+1, size-1); break; |