Use pgm_read_ptr for tables of pointers

This commit is contained in:
Scott Lahteine 2018-03-23 02:17:51 -04:00
parent 2746eb589e
commit 94badcbace
2 changed files with 2 additions and 2 deletions

View file

@ -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]));
}
}
}