Browse Source

Fix M118 parameter parsing

pull/1/head
Scott Lahteine 7 years ago
parent
commit
fc5c1a28d8
  1. 4
      Marlin/src/gcode/host/M118.cpp

4
Marlin/src/gcode/host/M118.cpp

@ -29,7 +29,7 @@
* E1 Have the host 'echo:' the text * E1 Have the host 'echo:' the text
*/ */
void GcodeSuite::M118() { void GcodeSuite::M118() {
if (parser.boolval('E')) SERIAL_ECHO_START(); if (parser.seenval('E') && parser.value_bool()) SERIAL_ECHO_START();
if (parser.boolval('A')) SERIAL_ECHOPGM("// "); if (parser.seenval('A') && parser.value_bool()) SERIAL_ECHOPGM("// ");
SERIAL_ECHOLN(parser.string_arg); SERIAL_ECHOLN(parser.string_arg);
} }

Loading…
Cancel
Save