From 615bec2329d14b371ad57dbe2bd3aaec0138a91c Mon Sep 17 00:00:00 2001 From: AnHardt Date: Wed, 4 Nov 2015 14:19:33 +0100 Subject: [PATCH] Activate warning about possible reduced accuracy by default Renamed `WARN_REDUCED_ACCURACY` to `DISABLE_REDUCED_ACCURACY_WARNING` Changed the condition for blinking from ``` #if ENABLED(WARN_REDUCED_ACCURACY) ``` to ``` #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) ``` --- Marlin/Configuration.h | 2 +- Marlin/dogm_lcd_implementation.h | 6 +++--- Marlin/example_configurations/Felix/Configuration.h | 2 +- .../Felix/Configuration_DUAL.h | 2 +- .../example_configurations/Hephestos/Configuration.h | 2 +- Marlin/example_configurations/K8200/Configuration.h | 2 +- .../RepRapWorld/Megatronics/Configuration.h | 2 +- .../example_configurations/RigidBot/Configuration.h | 2 +- Marlin/example_configurations/SCARA/Configuration.h | 2 +- Marlin/example_configurations/TAZ4/Configuration.h | 2 +- Marlin/example_configurations/WITBOX/Configuration.h | 2 +- .../adafruit/ST7565/Configuration.h | 2 +- .../delta/biv2.5/Configuration.h | 2 +- .../delta/generic/Configuration.h | 2 +- .../delta/kossel_mini/Configuration.h | 2 +- .../delta/kossel_pro/Configuration.h | 2 +- .../example_configurations/makibox/Configuration.h | 2 +- .../tvrrug/Round2/Configuration.h | 2 +- Marlin/ultralcd_implementation_hitachi_HD44780.h | 12 ++++++------ 19 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 23f155c83..39145a388 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -355,7 +355,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/dogm_lcd_implementation.h b/Marlin/dogm_lcd_implementation.h index 63df2416b..3362fd5c4 100644 --- a/Marlin/dogm_lcd_implementation.h +++ b/Marlin/dogm_lcd_implementation.h @@ -357,7 +357,7 @@ static void lcd_implementation_status_screen() { if (!axis_homed[X_AXIS]) lcd_printPGM(PSTR("?")); else - #if ENABLED(WARN_REDUCED_ACCURACY) + #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) if (!axis_known_position[X_AXIS]) lcd_printPGM(PSTR(" ")); else @@ -376,7 +376,7 @@ static void lcd_implementation_status_screen() { if (!axis_homed[Y_AXIS]) lcd_printPGM(PSTR("?")); else - #if ENABLED(WARN_REDUCED_ACCURACY) + #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) if (!axis_known_position[Y_AXIS]) lcd_printPGM(PSTR(" ")); else @@ -395,7 +395,7 @@ static void lcd_implementation_status_screen() { if (!axis_homed[Z_AXIS]) lcd_printPGM(PSTR("?")); else - #if ENABLED(WARN_REDUCED_ACCURACY) + #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) if (!axis_known_position[Z_AXIS]) lcd_printPGM(PSTR(" ")); else diff --git a/Marlin/example_configurations/Felix/Configuration.h b/Marlin/example_configurations/Felix/Configuration.h index 45a1c31a9..bcad565fb 100644 --- a/Marlin/example_configurations/Felix/Configuration.h +++ b/Marlin/example_configurations/Felix/Configuration.h @@ -337,7 +337,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/Felix/Configuration_DUAL.h b/Marlin/example_configurations/Felix/Configuration_DUAL.h index f2bf070b4..eec67c6fb 100644 --- a/Marlin/example_configurations/Felix/Configuration_DUAL.h +++ b/Marlin/example_configurations/Felix/Configuration_DUAL.h @@ -321,7 +321,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING #define DISABLE_E false // For all extruders #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled diff --git a/Marlin/example_configurations/Hephestos/Configuration.h b/Marlin/example_configurations/Hephestos/Configuration.h index 9f93be6b7..5d9d7d85a 100644 --- a/Marlin/example_configurations/Hephestos/Configuration.h +++ b/Marlin/example_configurations/Hephestos/Configuration.h @@ -347,7 +347,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/K8200/Configuration.h b/Marlin/example_configurations/K8200/Configuration.h index 9dc51da22..a0d7e29a2 100644 --- a/Marlin/example_configurations/K8200/Configuration.h +++ b/Marlin/example_configurations/K8200/Configuration.h @@ -370,7 +370,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // not for K8200 -> looses Steps // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h b/Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h index c2c85d75f..036d85a83 100644 --- a/Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h +++ b/Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h @@ -355,7 +355,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/RigidBot/Configuration.h b/Marlin/example_configurations/RigidBot/Configuration.h index 659c67e15..120691ca1 100644 --- a/Marlin/example_configurations/RigidBot/Configuration.h +++ b/Marlin/example_configurations/RigidBot/Configuration.h @@ -346,7 +346,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/SCARA/Configuration.h b/Marlin/example_configurations/SCARA/Configuration.h index 63fa374b0..2f6ee2bd7 100644 --- a/Marlin/example_configurations/SCARA/Configuration.h +++ b/Marlin/example_configurations/SCARA/Configuration.h @@ -363,7 +363,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/TAZ4/Configuration.h b/Marlin/example_configurations/TAZ4/Configuration.h index c8603745e..2c3ea89e6 100644 --- a/Marlin/example_configurations/TAZ4/Configuration.h +++ b/Marlin/example_configurations/TAZ4/Configuration.h @@ -375,7 +375,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/WITBOX/Configuration.h b/Marlin/example_configurations/WITBOX/Configuration.h index 6755e9130..abf104aa0 100644 --- a/Marlin/example_configurations/WITBOX/Configuration.h +++ b/Marlin/example_configurations/WITBOX/Configuration.h @@ -347,7 +347,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo #define DISABLE_Y false #define DISABLE_Z true // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/adafruit/ST7565/Configuration.h b/Marlin/example_configurations/adafruit/ST7565/Configuration.h index 3fc652e3e..1dece92ee 100644 --- a/Marlin/example_configurations/adafruit/ST7565/Configuration.h +++ b/Marlin/example_configurations/adafruit/ST7565/Configuration.h @@ -355,7 +355,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/delta/biv2.5/Configuration.h b/Marlin/example_configurations/delta/biv2.5/Configuration.h index c551401d4..65d15d6d8 100644 --- a/Marlin/example_configurations/delta/biv2.5/Configuration.h +++ b/Marlin/example_configurations/delta/biv2.5/Configuration.h @@ -390,7 +390,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/delta/generic/Configuration.h b/Marlin/example_configurations/delta/generic/Configuration.h index c6cd35aa4..0cc617d50 100644 --- a/Marlin/example_configurations/delta/generic/Configuration.h +++ b/Marlin/example_configurations/delta/generic/Configuration.h @@ -390,7 +390,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/delta/kossel_mini/Configuration.h b/Marlin/example_configurations/delta/kossel_mini/Configuration.h index 1759e4e52..6cef82a23 100644 --- a/Marlin/example_configurations/delta/kossel_mini/Configuration.h +++ b/Marlin/example_configurations/delta/kossel_mini/Configuration.h @@ -390,7 +390,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/delta/kossel_pro/Configuration.h b/Marlin/example_configurations/delta/kossel_pro/Configuration.h index 389df1351..45fbe292e 100644 --- a/Marlin/example_configurations/delta/kossel_pro/Configuration.h +++ b/Marlin/example_configurations/delta/kossel_pro/Configuration.h @@ -377,7 +377,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/makibox/Configuration.h b/Marlin/example_configurations/makibox/Configuration.h index b9d8fcff6..5111f9659 100644 --- a/Marlin/example_configurations/makibox/Configuration.h +++ b/Marlin/example_configurations/makibox/Configuration.h @@ -358,7 +358,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/example_configurations/tvrrug/Round2/Configuration.h b/Marlin/example_configurations/tvrrug/Round2/Configuration.h index f786fb0ff..f0103bf5f 100644 --- a/Marlin/example_configurations/tvrrug/Round2/Configuration.h +++ b/Marlin/example_configurations/tvrrug/Round2/Configuration.h @@ -345,7 +345,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo #define DISABLE_Y false #define DISABLE_Z false // Warn on display about possibly reduced accuracy -//#define WARN_REDUCED_ACCURACY +//#define DISABLE_REDUCED_ACCURACY_WARNING // @section extruder diff --git a/Marlin/ultralcd_implementation_hitachi_HD44780.h b/Marlin/ultralcd_implementation_hitachi_HD44780.h index 292bac781..dcbb0b592 100644 --- a/Marlin/ultralcd_implementation_hitachi_HD44780.h +++ b/Marlin/ultralcd_implementation_hitachi_HD44780.h @@ -624,8 +624,8 @@ static void lcd_implementation_status_screen() { else { if (!axis_homed[X_AXIS]) lcd_printPGM(PSTR("?")); - else - #if ENABLED(WARN_REDUCED_ACCURACY) + else + #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) if (!axis_known_position[X_AXIS]) lcd_printPGM(PSTR(" ")); else @@ -641,8 +641,8 @@ static void lcd_implementation_status_screen() { else { if (!axis_homed[Y_AXIS]) lcd_printPGM(PSTR("?")); - else - #if ENABLED(WARN_REDUCED_ACCURACY) + else + #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) if (!axis_known_position[Y_AXIS]) lcd_printPGM(PSTR(" ")); else @@ -661,8 +661,8 @@ static void lcd_implementation_status_screen() { else { if (!axis_homed[Z_AXIS]) lcd_printPGM(PSTR("?")); - else - #if ENABLED(WARN_REDUCED_ACCURACY) + else + #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) if (!axis_known_position[Z_AXIS]) lcd_printPGM(PSTR(" ")); else