Modem: Fix escape guard counter never resetting
Escape sequence guard timer now actually works
This commit is contained in:
@@ -391,6 +391,7 @@ modem_data_mode_process_byte(modem_t* modem, uint8_t data)
|
|||||||
modem->plusinc = 0;
|
modem->plusinc = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modem->cmdpause = 0;
|
||||||
|
|
||||||
if (modem->tx_count < 0x10000 && modem->connected) {
|
if (modem->tx_count < 0x10000 && modem->connected) {
|
||||||
modem->tx_pkt_ser_line[modem->tx_count++] = data;
|
modem->tx_pkt_ser_line[modem->tx_count++] = data;
|
||||||
@@ -597,6 +598,7 @@ modem_reset(modem_t* modem)
|
|||||||
modem->cmdpos = 0;
|
modem->cmdpos = 0;
|
||||||
modem->cmdbuf[0] = 0;
|
modem->cmdbuf[0] = 0;
|
||||||
modem->flowcontrol = 0;
|
modem->flowcontrol = 0;
|
||||||
|
modem->cmdpause = 0;
|
||||||
modem->plusinc = 0;
|
modem->plusinc = 0;
|
||||||
modem->dtrmode = 2;
|
modem->dtrmode = 2;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user