Serial refactor. Default 8-bit ECHO to int, not char (#20985)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@@ -307,7 +307,7 @@ void GCodeParser::parse(char *p) {
|
||||
|
||||
#if ENABLED(DEBUG_GCODE_PARSER)
|
||||
if (debug) {
|
||||
SERIAL_ECHOPAIR("Got param ", param, " at index ", (int)(p - command_ptr - 1));
|
||||
SERIAL_ECHOPAIR("Got param ", param, " at index ", p - command_ptr - 1);
|
||||
if (has_val) SERIAL_ECHOPGM(" (has_val)");
|
||||
}
|
||||
#endif
|
||||
@@ -391,8 +391,8 @@ void GCodeParser::unknown_command_warning() {
|
||||
"\n sec-ms: ", value_millis_from_seconds(),
|
||||
"\n int: ", value_int(),
|
||||
"\n ushort: ", value_ushort(),
|
||||
"\n byte: ", (int)value_byte(),
|
||||
"\n bool: ", (int)value_bool(),
|
||||
"\n byte: ", value_byte(),
|
||||
"\n bool: ", value_bool(),
|
||||
"\n linear: ", value_linear_units(),
|
||||
"\n celsius: ", value_celsius()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user