diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 0838a687cc..27a569edd3 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -8138,7 +8138,7 @@ inline void gcode_M111() { for (uint8_t i = 0; i < COUNT(debug_strings); i++) { if (TEST(marlin_debug_flags, i)) { if (comma++) SERIAL_CHAR(','); - serialprintPGM((char*)pgm_read_word(&debug_strings[i])); + serialprintPGM((char*)pgm_read_ptr(&debug_strings[i])); } } } diff --git a/Marlin/tmc_util.cpp b/Marlin/tmc_util.cpp index 3c5ee66313..bea827ff79 100644 --- a/Marlin/tmc_util.cpp +++ b/Marlin/tmc_util.cpp @@ -221,7 +221,7 @@ void _tmc_say_axis(const TMC_AxisEnum axis) { ext_E2[] PROGMEM = "E2", ext_E3[] PROGMEM = "E3", ext_E4[] PROGMEM = "E4"; const static char* const tmc_axes[] PROGMEM = { ext_X, ext_Y, ext_Z, ext_X2, ext_Y2, ext_Z2, ext_E0, ext_E1, ext_E2, ext_E3, ext_E4 }; - serialprintPGM((char*)pgm_read_word(&tmc_axes[axis])); + serialprintPGM((char*)pgm_read_ptr(&tmc_axes[axis])); } void _tmc_say_current(const TMC_AxisEnum axis, const uint16_t curr) {