Fix M111 output using pgm_read_word as required
As noted by @taratata2016 in https://github.com/MarlinFirmware/Marlin/issues/3300#issuecomment-204687275
This commit is contained in:
parent
3aee89b93a
commit
fd0ac371b0
|
@ -4373,7 +4373,7 @@ inline void gcode_M111() {
|
||||||
for (uint8_t i = 0; i < COUNT(debug_strings); i++) {
|
for (uint8_t i = 0; i < COUNT(debug_strings); i++) {
|
||||||
if (TEST(marlin_debug_flags, i)) {
|
if (TEST(marlin_debug_flags, i)) {
|
||||||
if (comma++) SERIAL_CHAR('|');
|
if (comma++) SERIAL_CHAR('|');
|
||||||
serialprintPGM(debug_strings[i]);
|
serialprintPGM((char*)pgm_read_word(&(debug_strings[i])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue