Browse Source

Merge pull request #3343 from thinkyhead/rc_fix_m111_output

Fix M111 output using pgm_read_word, as required
Scott Lahteine 8 years ago
parent
commit
de39056f68
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -4380,7 +4380,7 @@ inline void gcode_M111() {
4380 4380
     for (uint8_t i = 0; i < COUNT(debug_strings); i++) {
4381 4381
       if (TEST(marlin_debug_flags, i)) {
4382 4382
         if (comma++) SERIAL_CHAR('|');
4383
-        serialprintPGM(debug_strings[i]);
4383
+        serialprintPGM((char*)pgm_read_word(&(debug_strings[i])));
4384 4384
       }
4385 4385
     }
4386 4386
   }

Loading…
Cancel
Save