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:
@@ -75,7 +75,7 @@ void GcodeSuite::M502() {
|
||||
if (dowrite) {
|
||||
val = parser.byteval('V');
|
||||
persistentStore.write_data(addr, &val);
|
||||
SERIAL_ECHOLNPAIR("Wrote address ", addr, " with ", int(val));
|
||||
SERIAL_ECHOLNPAIR("Wrote address ", addr, " with ", val);
|
||||
}
|
||||
else {
|
||||
if (parser.seenval('T')) {
|
||||
@@ -90,7 +90,7 @@ void GcodeSuite::M502() {
|
||||
}
|
||||
else {
|
||||
persistentStore.read_data(addr, &val);
|
||||
SERIAL_ECHOLNPAIR("Read address ", addr, " and got ", int(val));
|
||||
SERIAL_ECHOLNPAIR("Read address ", addr, " and got ", val);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
Reference in New Issue
Block a user