Expose DISABLE_M503 option as a test option
This commit is contained in:
parent
3e78a01262
commit
dcec7178d1
@ -992,8 +992,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -9279,12 +9279,14 @@ inline void gcode_M502() {
|
||||
(void)settings.reset();
|
||||
}
|
||||
|
||||
/**
|
||||
* M503: print settings currently in memory
|
||||
*/
|
||||
inline void gcode_M503() {
|
||||
(void)settings.report(!parser.boolval('S', true));
|
||||
}
|
||||
#if DISABLED(DISABLE_M503)
|
||||
/**
|
||||
* M503: print settings currently in memory
|
||||
*/
|
||||
inline void gcode_M503() {
|
||||
(void)settings.report(!parser.boolval('S', true));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
|
||||
|
||||
@ -11022,9 +11024,12 @@ void process_next_command() {
|
||||
case 502: // M502: Revert to default settings
|
||||
gcode_M502();
|
||||
break;
|
||||
case 503: // M503: print settings currently in memory
|
||||
gcode_M503();
|
||||
break;
|
||||
|
||||
#if DISABLED(DISABLE_M503)
|
||||
case 503: // M503: print settings currently in memory
|
||||
gcode_M503();
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
|
||||
case 540: // M540: Set abort on endstop hit for SD printing
|
||||
|
@ -1051,7 +1051,7 @@ void MarlinSettings::postprocess() {
|
||||
#endif
|
||||
}
|
||||
|
||||
#if ENABLED(EEPROM_CHITCHAT)
|
||||
#if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503)
|
||||
report();
|
||||
#endif
|
||||
|
||||
|
@ -55,7 +55,7 @@ class MarlinSettings {
|
||||
static void report(bool forReplay=false);
|
||||
#else
|
||||
FORCE_INLINE
|
||||
static void report(bool forReplay=false) { }
|
||||
static void report(bool forReplay=false) { UNUSED(forReplay); }
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
@ -1148,8 +1148,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -998,8 +998,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -989,8 +989,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -986,8 +986,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -970,8 +970,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -970,8 +970,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -992,8 +992,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -978,8 +978,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -981,8 +981,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1017,8 +1017,8 @@
|
||||
#define EEPROM_SETTINGS // K8200: uses EEPROM by default
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -988,8 +988,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -988,8 +988,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1015,8 +1015,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -988,8 +988,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -986,8 +986,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1000,8 +1000,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1007,8 +1007,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1044,8 +1044,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -978,8 +978,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -988,8 +988,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1108,8 +1108,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1110,8 +1110,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1099,8 +1099,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1102,8 +1102,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1107,8 +1107,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1165,8 +1165,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -1004,8 +1004,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -991,8 +991,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -983,8 +983,8 @@
|
||||
//#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -994,8 +994,8 @@
|
||||
#define EEPROM_SETTINGS
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
||||
#define EEPROM_CHITCHAT // Please keep turned on if you can.
|
||||
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
||||
#define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
|
||||
#endif
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user