From dcec7178d17445be1b4181131ab82645a6057042 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 1 Jul 2017 21:30:46 -0500 Subject: [PATCH] Expose DISABLE_M503 option as a test option --- Marlin/Configuration.h | 4 ++-- Marlin/Marlin_main.cpp | 23 +++++++++++-------- Marlin/configuration_store.cpp | 2 +- Marlin/configuration_store.h | 2 +- .../Anet/A6/Configuration.h | 4 ++-- .../Anet/A8/Configuration.h | 4 ++-- .../CL-260/Configuration.h | 4 ++-- .../Cartesio/Configuration.h | 4 ++-- .../Felix/Configuration.h | 4 ++-- .../Felix/DUAL/Configuration.h | 4 ++-- .../FolgerTech-i3-2020/Configuration.h | 4 ++-- .../Hephestos/Configuration.h | 4 ++-- .../Hephestos_2/Configuration.h | 4 ++-- .../K8200/Configuration.h | 4 ++-- .../K8400/Configuration.h | 4 ++-- .../K8400/Dual-head/Configuration.h | 4 ++-- .../M150/Configuration.h | 4 ++-- .../RepRapWorld/Megatronics/Configuration.h | 4 ++-- .../RigidBot/Configuration.h | 4 ++-- .../SCARA/Configuration.h | 4 ++-- .../TAZ4/Configuration.h | 4 ++-- .../TinyBoy2/Configuration.h | 4 ++-- .../WITBOX/Configuration.h | 4 ++-- .../adafruit/ST7565/Configuration.h | 4 ++-- .../FLSUN/auto_calibrate/Configuration.h | 4 ++-- .../delta/FLSUN/kossel_mini/Configuration.h | 4 ++-- .../delta/generic/Configuration.h | 4 ++-- .../delta/kossel_mini/Configuration.h | 4 ++-- .../delta/kossel_pro/Configuration.h | 4 ++-- .../delta/kossel_xl/Configuration.h | 4 ++-- .../gCreate_gMax1.5+/Configuration.h | 4 ++-- .../makibox/Configuration.h | 4 ++-- .../tvrrug/Round2/Configuration.h | 4 ++-- .../wt150/Configuration.h | 4 ++-- 34 files changed, 78 insertions(+), 73 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 082d5a999a..05e193f13a 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -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 // diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 98fb0e60b0..f19a89818b 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -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 diff --git a/Marlin/configuration_store.cpp b/Marlin/configuration_store.cpp index 840d6b88f5..8dd5eedef1 100644 --- a/Marlin/configuration_store.cpp +++ b/Marlin/configuration_store.cpp @@ -1051,7 +1051,7 @@ void MarlinSettings::postprocess() { #endif } - #if ENABLED(EEPROM_CHITCHAT) + #if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503) report(); #endif diff --git a/Marlin/configuration_store.h b/Marlin/configuration_store.h index 23a716a94f..99e9511209 100644 --- a/Marlin/configuration_store.h +++ b/Marlin/configuration_store.h @@ -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: diff --git a/Marlin/example_configurations/Anet/A6/Configuration.h b/Marlin/example_configurations/Anet/A6/Configuration.h index 4e954bae10..a05c5864ac 100644 --- a/Marlin/example_configurations/Anet/A6/Configuration.h +++ b/Marlin/example_configurations/Anet/A6/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/Anet/A8/Configuration.h b/Marlin/example_configurations/Anet/A8/Configuration.h index 070121fa61..3cae7b59ba 100644 --- a/Marlin/example_configurations/Anet/A8/Configuration.h +++ b/Marlin/example_configurations/Anet/A8/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/CL-260/Configuration.h b/Marlin/example_configurations/CL-260/Configuration.h index a8cad55df7..f10203a21c 100644 --- a/Marlin/example_configurations/CL-260/Configuration.h +++ b/Marlin/example_configurations/CL-260/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/Cartesio/Configuration.h b/Marlin/example_configurations/Cartesio/Configuration.h index ac543164c8..1e195fff02 100644 --- a/Marlin/example_configurations/Cartesio/Configuration.h +++ b/Marlin/example_configurations/Cartesio/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/Felix/Configuration.h b/Marlin/example_configurations/Felix/Configuration.h index a7dcb118cf..c339a163c0 100644 --- a/Marlin/example_configurations/Felix/Configuration.h +++ b/Marlin/example_configurations/Felix/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/Felix/DUAL/Configuration.h b/Marlin/example_configurations/Felix/DUAL/Configuration.h index 7904e3cc56..26cfe57745 100644 --- a/Marlin/example_configurations/Felix/DUAL/Configuration.h +++ b/Marlin/example_configurations/Felix/DUAL/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h b/Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h index 36ff1f2b4a..ac04018735 100644 --- a/Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h +++ b/Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/Hephestos/Configuration.h b/Marlin/example_configurations/Hephestos/Configuration.h index dfa01e944a..a5d558f85d 100644 --- a/Marlin/example_configurations/Hephestos/Configuration.h +++ b/Marlin/example_configurations/Hephestos/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/Hephestos_2/Configuration.h b/Marlin/example_configurations/Hephestos_2/Configuration.h index 63767298e5..bcb6765744 100644 --- a/Marlin/example_configurations/Hephestos_2/Configuration.h +++ b/Marlin/example_configurations/Hephestos_2/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/K8200/Configuration.h b/Marlin/example_configurations/K8200/Configuration.h index 4ecaf9c8c8..6842ecf92b 100644 --- a/Marlin/example_configurations/K8200/Configuration.h +++ b/Marlin/example_configurations/K8200/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/K8400/Configuration.h b/Marlin/example_configurations/K8400/Configuration.h index c7b0db6b3a..9a1dacf393 100644 --- a/Marlin/example_configurations/K8400/Configuration.h +++ b/Marlin/example_configurations/K8400/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/K8400/Dual-head/Configuration.h b/Marlin/example_configurations/K8400/Dual-head/Configuration.h index 68359941d2..8f23d29f46 100644 --- a/Marlin/example_configurations/K8400/Dual-head/Configuration.h +++ b/Marlin/example_configurations/K8400/Dual-head/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/M150/Configuration.h b/Marlin/example_configurations/M150/Configuration.h index c8043291a2..5e99290d83 100644 --- a/Marlin/example_configurations/M150/Configuration.h +++ b/Marlin/example_configurations/M150/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h b/Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h index e3a1599559..7369f7ac8d 100644 --- a/Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h +++ b/Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/RigidBot/Configuration.h b/Marlin/example_configurations/RigidBot/Configuration.h index 5473a32073..799ad46dc3 100644 --- a/Marlin/example_configurations/RigidBot/Configuration.h +++ b/Marlin/example_configurations/RigidBot/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/SCARA/Configuration.h b/Marlin/example_configurations/SCARA/Configuration.h index d6a97d72e1..e04d12e863 100644 --- a/Marlin/example_configurations/SCARA/Configuration.h +++ b/Marlin/example_configurations/SCARA/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/TAZ4/Configuration.h b/Marlin/example_configurations/TAZ4/Configuration.h index bdf7d94193..0b2897bced 100644 --- a/Marlin/example_configurations/TAZ4/Configuration.h +++ b/Marlin/example_configurations/TAZ4/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/TinyBoy2/Configuration.h b/Marlin/example_configurations/TinyBoy2/Configuration.h index b3f58f0cbd..4d35c063a6 100644 --- a/Marlin/example_configurations/TinyBoy2/Configuration.h +++ b/Marlin/example_configurations/TinyBoy2/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/WITBOX/Configuration.h b/Marlin/example_configurations/WITBOX/Configuration.h index cb280b3446..691abb4977 100644 --- a/Marlin/example_configurations/WITBOX/Configuration.h +++ b/Marlin/example_configurations/WITBOX/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/adafruit/ST7565/Configuration.h b/Marlin/example_configurations/adafruit/ST7565/Configuration.h index 3b3cb2c4ce..5b1dbf648f 100644 --- a/Marlin/example_configurations/adafruit/ST7565/Configuration.h +++ b/Marlin/example_configurations/adafruit/ST7565/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h b/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h index 8426456df3..6706efd51c 100644 --- a/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h +++ b/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h b/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h index 97ea09ca8c..8e402bcb0f 100644 --- a/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h +++ b/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/delta/generic/Configuration.h b/Marlin/example_configurations/delta/generic/Configuration.h index 2bc238b84d..2f69a232e1 100644 --- a/Marlin/example_configurations/delta/generic/Configuration.h +++ b/Marlin/example_configurations/delta/generic/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/delta/kossel_mini/Configuration.h b/Marlin/example_configurations/delta/kossel_mini/Configuration.h index d2a21e3c91..9596a58c47 100644 --- a/Marlin/example_configurations/delta/kossel_mini/Configuration.h +++ b/Marlin/example_configurations/delta/kossel_mini/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/delta/kossel_pro/Configuration.h b/Marlin/example_configurations/delta/kossel_pro/Configuration.h index d321556c0b..6219756021 100644 --- a/Marlin/example_configurations/delta/kossel_pro/Configuration.h +++ b/Marlin/example_configurations/delta/kossel_pro/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/delta/kossel_xl/Configuration.h b/Marlin/example_configurations/delta/kossel_xl/Configuration.h index d9071e3f10..99271bf5f8 100644 --- a/Marlin/example_configurations/delta/kossel_xl/Configuration.h +++ b/Marlin/example_configurations/delta/kossel_xl/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h b/Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h index 727d5ac438..cde1f76480 100644 --- a/Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h +++ b/Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/makibox/Configuration.h b/Marlin/example_configurations/makibox/Configuration.h index 3580a15eb7..7992697dfc 100644 --- a/Marlin/example_configurations/makibox/Configuration.h +++ b/Marlin/example_configurations/makibox/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/tvrrug/Round2/Configuration.h b/Marlin/example_configurations/tvrrug/Round2/Configuration.h index 1eb267ccf0..8a54d17340 100644 --- a/Marlin/example_configurations/tvrrug/Round2/Configuration.h +++ b/Marlin/example_configurations/tvrrug/Round2/Configuration.h @@ -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 // diff --git a/Marlin/example_configurations/wt150/Configuration.h b/Marlin/example_configurations/wt150/Configuration.h index cc324f83ec..9be759d373 100644 --- a/Marlin/example_configurations/wt150/Configuration.h +++ b/Marlin/example_configurations/wt150/Configuration.h @@ -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 //