Add ";" to get commands from rotctl

Such as w (send command)

Signed-off-by: Agis Zisimatos <agzisim@gmail.com>
merge-requests/7/head
Agis Zisimatos 2019-07-17 14:08:41 +03:00
parent 1a5d69adfc
commit 12e38fb752
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public:
incomingByte = rs485.read();
// Read new data, '\n' means new pacakage
if (incomingByte == '\n' || incomingByte == '\r') {
if (incomingByte == '\n' || incomingByte == '\r' || incomingByte == ';') {
buffer[BufferCnt] = 0;
if (buffer[0] == 'A' && buffer[1] == 'Z') {
if (buffer[2] == ' ' && buffer[3] == 'E' &&