Skip to content

Commit

Permalink
Bugfix for issue #239 (setting baudrate via NVT)
Browse files Browse the repository at this point in the history
According to #239 this commit
fixes a bug, when setting baudrate from Telnet control commands (NVT)
more than once.
  • Loading branch information
realGo4IT committed Jan 11, 2017
1 parent 963ffbb commit 5d27848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serial/serbridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d27848

Please sign in to comment.