Fix M118 parameter parsing
This commit is contained in:
parent
399bca316a
commit
fc5c1a28d8
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
* E1 Have the host 'echo:' the text
|
||||
*/
|
||||
void GcodeSuite::M118() {
|
||||
if (parser.boolval('E')) SERIAL_ECHO_START();
|
||||
if (parser.boolval('A')) SERIAL_ECHOPGM("// ");
|
||||
if (parser.seenval('E') && parser.value_bool()) SERIAL_ECHO_START();
|
||||
if (parser.seenval('A') && parser.value_bool()) SERIAL_ECHOPGM("// ");
|
||||
SERIAL_ECHOLN(parser.string_arg);
|
||||
}
|
||||
|
|
Reference in a new issue