fix missing check for command

This commit is contained in:
luc lebosse 2016-11-11 13:38:59 +01:00
parent 5aebdb5a60
commit cbd369165d

View File

@ -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