From a855d01336bde2958b9f833351b5628c3eb84277 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 23 Jan 2018 20:32:53 -0600 Subject: [PATCH] Fix M118 parameter parsing --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 57998c62e..ea376a19f 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -8590,8 +8590,8 @@ inline void gcode_M117() { lcd_setstatus(parser.string_arg); } * E1 Have the host 'echo:' the text */ inline void gcode_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); }