From cbd369165d0f541a1ec3b3b6a415118bc95563d8 Mon Sep 17 00:00:00 2001 From: luc lebosse Date: Fri, 11 Nov 2016 13:38:59 +0100 Subject: [PATCH] fix missing check for command --- esp3d/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp3d/command.cpp b/esp3d/command.cpp index bbc76d72..9fca3d12 100644 --- a/esp3d/command.cpp +++ b/esp3d/command.cpp @@ -712,7 +712,7 @@ void COMMAND::read_buffer_tcp(uint8_t b) previous_was_char=false; //next call will reset the buffer } //this is not printable but end of command check if need to handle it - if (b==13 ||b==10) { + if (b==13 || b==10) { //reset comment flag iscomment = false; //Minimum is something like M10 so 3 char @@ -746,7 +746,7 @@ void COMMAND::read_buffer_serial(uint8_t b) previous_was_char=false; //next call will reset the buffer } //this is not printable but end of command check if need to handle it - if (b==13) { + if (b==13 || b==10) { //reset comment flag iscomment = false; //Minimum is something like M10 so 3 char