Browse Source

Fix M118 parameter parsing

Scott Lahteine 7 years ago
parent
commit
fc5c1a28d8
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/gcode/host/M118.cpp

+ 2
- 2
Marlin/src/gcode/host/M118.cpp View File

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

Loading…
Cancel
Save