Skip to content

Commit d9a388b

Browse files
committed
🩹 Fix some serial chars
1 parent b44e68e commit d9a388b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Marlin/src/core/mstring.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class MString {
9898

9999
void debug(FSTR_P const f) {
100100
#if ENABLED(MSTRING_DEBUG)
101-
SERIAL_ECHOLN(f, ':', uintptr_t(str), ' ', length(), ' ', str);
101+
SERIAL_ECHOLN(f, AS_CHAR(':'), uintptr_t(str), AS_CHAR(' '), length(), AS_CHAR(' '), str);
102102
#endif
103103
}
104104

Marlin/src/feature/runout.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class TFilamentMonitor : public FilamentMonitorBase {
159159
if (ran_out) {
160160
#if ENABLED(FILAMENT_RUNOUT_SENSOR_DEBUG)
161161
SERIAL_ECHOPGM("Runout Sensors: ");
162-
for (uint8_t i = 0; i < 8; ++i) SERIAL_ECHO('0' + char(runout_flags[i]));
162+
for (uint8_t i = 0; i < 8; ++i) SERIAL_CHAR('0' + char(runout_flags[i]));
163163
SERIAL_ECHOLNPGM(" -> ", extruder, " RUN OUT");
164164
#endif
165165

Marlin/src/module/temperature.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ void Temperature::_temp_error(
14871487
OPTCODE(HAS_TEMP_CHAMBER, case H_CHAMBER: SERIAL_ECHOPGM(STR_HEATER_CHAMBER); break)
14881488
OPTCODE(HAS_TEMP_BED, case H_BED: SERIAL_ECHOPGM(STR_HEATER_BED); break)
14891489
default:
1490-
if (real_heater_id >= 0) SERIAL_ECHO('E', real_heater_id);
1490+
if (real_heater_id >= 0) SERIAL_ECHO(AS_CHAR('E'), real_heater_id);
14911491
}
14921492
#if ENABLED(ERR_INCLUDE_TEMP)
14931493
SERIAL_ECHOLNPGM(STR_DETECTED_TEMP_B, deg, STR_DETECTED_TEMP_E);

0 commit comments

Comments
 (0)