From 5d278486907bfdc9aaec779392916f00a0124574 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 11 Jan 2017 22:56:33 +0100 Subject: [PATCH] Bugfix for issue #239 (setting baudrate via NVT) According to https://github.com/jeelabs/esp-link/issues/239 this commit fixes a bug, when setting baudrate from Telnet control commands (NVT) more than once. --- serial/serbridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial/serbridge.c b/serial/serbridge.c index c6791b23..d233375e 100644 --- a/serial/serbridge.c +++ b/serial/serbridge.c @@ -109,7 +109,7 @@ telnetUnwrap(serbridgeConnData *conn, uint8_t *inBuf, int len) case SetControl: state = TN_setControl; break; case SetDataSize: state = TN_setDataSize; break; case SetParity: state = TN_setParity; break; - case SetBaud: state = TN_setBaud; tn_baudCnt = 0; break; + case SetBaud: state = TN_setBaud; tn_baudCnt = 0; tn_baud = 0; break; default: state = TN_end; break; } break;