From b741188bec393fe2b1dde860a5522a95f2914775 Mon Sep 17 00:00:00 2001 From: Jim Morris Date: Fri, 11 May 2018 22:48:17 +0100 Subject: [PATCH] return ok on an uppercase non command word --- src/modules/communication/GcodeDispatch.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"); } } -- 2.20.1