Browse Source

💥 Generalize extra debugging

FB4S_WIFI
Scott Lahteine 3 years ago
parent
commit
ac6c1a9e12
  1. 2
      Marlin/src/core/language.h
  2. 4
      Marlin/src/gcode/control/M111.cpp

2
Marlin/src/core/language.h

@ -254,7 +254,7 @@
#define STR_DEBUG_ERRORS "ERRORS" #define STR_DEBUG_ERRORS "ERRORS"
#define STR_DEBUG_DRYRUN "DRYRUN" #define STR_DEBUG_DRYRUN "DRYRUN"
#define STR_DEBUG_COMMUNICATION "COMMUNICATION" #define STR_DEBUG_COMMUNICATION "COMMUNICATION"
#define STR_DEBUG_LEVELING "LEVELING" #define STR_DEBUG_DETAIL "DETAIL"
#define STR_PRINTER_LOCKED "Printer locked! (Unlock with M511 or LCD)" #define STR_PRINTER_LOCKED "Printer locked! (Unlock with M511 or LCD)"
#define STR_WRONG_PASSWORD "Incorrect Password" #define STR_WRONG_PASSWORD "Incorrect Password"

4
Marlin/src/gcode/control/M111.cpp

@ -34,12 +34,12 @@ void GcodeSuite::M111() {
static PGMSTR(str_debug_8, STR_DEBUG_DRYRUN); static PGMSTR(str_debug_8, STR_DEBUG_DRYRUN);
static PGMSTR(str_debug_16, STR_DEBUG_COMMUNICATION); static PGMSTR(str_debug_16, STR_DEBUG_COMMUNICATION);
#if ENABLED(DEBUG_LEVELING_FEATURE) #if ENABLED(DEBUG_LEVELING_FEATURE)
static PGMSTR(str_debug_lvl, STR_DEBUG_LEVELING); static PGMSTR(str_debug_detail, STR_DEBUG_DETAIL);
#endif #endif
static PGM_P const debug_strings[] PROGMEM = { static PGM_P const debug_strings[] PROGMEM = {
str_debug_1, str_debug_2, str_debug_4, str_debug_8, str_debug_16, str_debug_1, str_debug_2, str_debug_4, str_debug_8, str_debug_16,
TERN_(DEBUG_LEVELING_FEATURE, str_debug_lvl) TERN_(DEBUG_LEVELING_FEATURE, str_debug_detail)
}; };
SERIAL_ECHO_START(); SERIAL_ECHO_START();

Loading…
Cancel
Save