Browse Source

Merge pull request #3374 from jbrazio/bugfix/m111-corrupted-output

M111: Add static keyword to PROGMEM debug variables
Scott Lahteine 8 years ago
parent
commit
d5ccc9c70a
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      Marlin/Marlin_main.cpp

+ 7
- 7
Marlin/Marlin_main.cpp View File

@@ -4357,16 +4357,16 @@ inline void gcode_M110() {
4357 4357
 inline void gcode_M111() {
4358 4358
   marlin_debug_flags = code_seen('S') ? code_value_short() : DEBUG_NONE;
4359 4359
 
4360
-  const char str_debug_1[] PROGMEM = MSG_DEBUG_ECHO;
4361
-  const char str_debug_2[] PROGMEM = MSG_DEBUG_INFO;
4362
-  const char str_debug_4[] PROGMEM = MSG_DEBUG_ERRORS;
4363
-  const char str_debug_8[] PROGMEM = MSG_DEBUG_DRYRUN;
4364
-  const char str_debug_16[] PROGMEM = MSG_DEBUG_COMMUNICATION;
4360
+  const static char str_debug_1[] PROGMEM = MSG_DEBUG_ECHO;
4361
+  const static char str_debug_2[] PROGMEM = MSG_DEBUG_INFO;
4362
+  const static char str_debug_4[] PROGMEM = MSG_DEBUG_ERRORS;
4363
+  const static char str_debug_8[] PROGMEM = MSG_DEBUG_DRYRUN;
4364
+  const static char str_debug_16[] PROGMEM = MSG_DEBUG_COMMUNICATION;
4365 4365
   #if ENABLED(DEBUG_LEVELING_FEATURE)
4366
-    const char str_debug_32[] PROGMEM = MSG_DEBUG_LEVELING;
4366
+    const static char str_debug_32[] PROGMEM = MSG_DEBUG_LEVELING;
4367 4367
   #endif
4368 4368
 
4369
-  const char* const debug_strings[] PROGMEM = {
4369
+  const static char* const debug_strings[] PROGMEM = {
4370 4370
     str_debug_1, str_debug_2, str_debug_4, str_debug_8, str_debug_16,
4371 4371
     #if ENABLED(DEBUG_LEVELING_FEATURE)
4372 4372
       str_debug_32

Loading…
Cancel
Save