1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-30 23:30:16 +00:00

Fix M118 parameter parsing

This commit is contained in:
Scott Lahteine 2018-01-23 20:32:53 -06:00
parent d5ad51821c
commit a855d01336

View File

@ -8590,8 +8590,8 @@ inline void gcode_M117() { lcd_setstatus(parser.string_arg); }
* E1 Have the host 'echo:' the text * E1 Have the host 'echo:' the text
*/ */
inline void gcode_M118() { inline void gcode_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);
} }