Skip to main content
Sign in
Snippets Groups Projects
Commit fc5c1a28 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Fix M118 parameter parsing

parent 399bca31
Branches
Tags
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment