Move M118 to cpp

This commit is contained in:
Scott Lahteine
2017-09-17 00:42:42 -05:00
parent 811c32b85a
commit 379f16558e
3 changed files with 5 additions and 6 deletions

View File

@ -20,13 +20,15 @@
*
*/
#include "../gcode.h"
/**
* M118: Display a message in the host console.
*
* A Append '// ' for an action command, as in OctoPrint
* E Have the host 'echo:' the text
*/
void gcode_M118() {
void GcodeSuite::M118() {
if (parser.boolval('E')) SERIAL_ECHO_START();
if (parser.boolval('A')) SERIAL_ECHOPGM("// ");
SERIAL_ECHOLN(parser.string_arg);