Browse Source

Expose DISABLE_M503 option as a test option

pull/1/head
Scott Lahteine 8 years ago
parent
commit
dcec7178d1
  1. 4
      Marlin/Configuration.h
  2. 23
      Marlin/Marlin_main.cpp
  3. 2
      Marlin/configuration_store.cpp
  4. 2
      Marlin/configuration_store.h
  5. 4
      Marlin/example_configurations/Anet/A6/Configuration.h
  6. 4
      Marlin/example_configurations/Anet/A8/Configuration.h
  7. 4
      Marlin/example_configurations/CL-260/Configuration.h
  8. 4
      Marlin/example_configurations/Cartesio/Configuration.h
  9. 4
      Marlin/example_configurations/Felix/Configuration.h
  10. 4
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  11. 4
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h
  12. 4
      Marlin/example_configurations/Hephestos/Configuration.h
  13. 4
      Marlin/example_configurations/Hephestos_2/Configuration.h
  14. 4
      Marlin/example_configurations/K8200/Configuration.h
  15. 4
      Marlin/example_configurations/K8400/Configuration.h
  16. 4
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  17. 4
      Marlin/example_configurations/M150/Configuration.h
  18. 4
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  19. 4
      Marlin/example_configurations/RigidBot/Configuration.h
  20. 4
      Marlin/example_configurations/SCARA/Configuration.h
  21. 4
      Marlin/example_configurations/TAZ4/Configuration.h
  22. 4
      Marlin/example_configurations/TinyBoy2/Configuration.h
  23. 4
      Marlin/example_configurations/WITBOX/Configuration.h
  24. 4
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  25. 4
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  26. 4
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  27. 4
      Marlin/example_configurations/delta/generic/Configuration.h
  28. 4
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  29. 4
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  30. 4
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  31. 4
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h
  32. 4
      Marlin/example_configurations/makibox/Configuration.h
  33. 4
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  34. 4
      Marlin/example_configurations/wt150/Configuration.h

4
Marlin/Configuration.h

@ -992,8 +992,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

23
Marlin/Marlin_main.cpp

@ -9279,12 +9279,14 @@ inline void gcode_M502() {
(void)settings.reset(); (void)settings.reset();
} }
/** #if DISABLED(DISABLE_M503)
* M503: print settings currently in memory /**
*/ * M503: print settings currently in memory
inline void gcode_M503() { */
(void)settings.report(!parser.boolval('S', true)); inline void gcode_M503() {
} (void)settings.report(!parser.boolval('S', true));
}
#endif
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
@ -11022,9 +11024,12 @@ void process_next_command() {
case 502: // M502: Revert to default settings case 502: // M502: Revert to default settings
gcode_M502(); gcode_M502();
break; break;
case 503: // M503: print settings currently in memory
gcode_M503(); #if DISABLED(DISABLE_M503)
break; case 503: // M503: print settings currently in memory
gcode_M503();
break;
#endif
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
case 540: // M540: Set abort on endstop hit for SD printing case 540: // M540: Set abort on endstop hit for SD printing

2
Marlin/configuration_store.cpp

@ -1051,7 +1051,7 @@ void MarlinSettings::postprocess() {
#endif #endif
} }
#if ENABLED(EEPROM_CHITCHAT) #if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503)
report(); report();
#endif #endif

2
Marlin/configuration_store.h

@ -55,7 +55,7 @@ class MarlinSettings {
static void report(bool forReplay=false); static void report(bool forReplay=false);
#else #else
FORCE_INLINE FORCE_INLINE
static void report(bool forReplay=false) { } static void report(bool forReplay=false) { UNUSED(forReplay); }
#endif #endif
private: private:

4
Marlin/example_configurations/Anet/A6/Configuration.h

@ -1148,8 +1148,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/Anet/A8/Configuration.h

@ -998,8 +998,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/CL-260/Configuration.h

@ -989,8 +989,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/Cartesio/Configuration.h

@ -986,8 +986,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/Felix/Configuration.h

@ -970,8 +970,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/Felix/DUAL/Configuration.h

@ -970,8 +970,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h

@ -992,8 +992,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/Hephestos/Configuration.h

@ -978,8 +978,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/Hephestos_2/Configuration.h

@ -981,8 +981,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/K8200/Configuration.h

@ -1017,8 +1017,8 @@
#define EEPROM_SETTINGS // K8200: uses EEPROM by default #define EEPROM_SETTINGS // K8200: uses EEPROM by default
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/K8400/Configuration.h

@ -988,8 +988,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/K8400/Dual-head/Configuration.h

@ -988,8 +988,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/M150/Configuration.h

@ -1015,8 +1015,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h

@ -988,8 +988,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/RigidBot/Configuration.h

@ -986,8 +986,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/SCARA/Configuration.h

@ -1000,8 +1000,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/TAZ4/Configuration.h

@ -1007,8 +1007,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/TinyBoy2/Configuration.h

@ -1044,8 +1044,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/WITBOX/Configuration.h

@ -978,8 +978,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/adafruit/ST7565/Configuration.h

@ -988,8 +988,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h

@ -1108,8 +1108,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h

@ -1110,8 +1110,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/delta/generic/Configuration.h

@ -1099,8 +1099,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/delta/kossel_mini/Configuration.h

@ -1102,8 +1102,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/delta/kossel_pro/Configuration.h

@ -1107,8 +1107,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/delta/kossel_xl/Configuration.h

@ -1165,8 +1165,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h

@ -1004,8 +1004,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/makibox/Configuration.h

@ -991,8 +991,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/tvrrug/Round2/Configuration.h

@ -983,8 +983,8 @@
//#define EEPROM_SETTINGS //#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

4
Marlin/example_configurations/wt150/Configuration.h

@ -994,8 +994,8 @@
#define EEPROM_SETTINGS #define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out: //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#define EEPROM_CHITCHAT // Please keep turned on if you can. #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
#endif #endif
// //

Loading…
Cancel
Save