From: Jim Morris Date: Fri, 11 May 2018 21:48:17 +0000 (+0100) Subject: return ok on an uppercase non command word X-Git-Url: http://git.hcoop.net/clinton/Smoothieware.git/commitdiff_plain/b741188bec393fe2b1dde860a5522a95f2914775 return ok on an uppercase non command word --- diff --git a/src/modules/communication/GcodeDispatch.cpp b/src/modules/communication/GcodeDispatch.cpp index fbb2efb1..b6b84d81 100644 --- a/src/modules/communication/GcodeDispatch.cpp +++ b/src/modules/communication/GcodeDispatch.cpp @@ -468,9 +468,13 @@ try_again: possible_command.insert(0, buf); goto try_again; - // Ignore comments and blank lines } else if ( first_char == ';' || first_char == '(' || first_char == ' ' || first_char == '\n' || first_char == '\r' ) { - new_message.stream->printf("ok\r\n"); + // Ignore comments and blank lines + new_message.stream->printf("ok\n"); + + } else { + // an uppercase non command word on its own (except XYZF) just returns ok, we could add an error but no hosts expect that. + new_message.stream->printf("ok - ignored\n"); } }