Browse Source

Merge pull request #6942 from thinkyhead/bf_cleanups_friday

General cleanup after recent commits
Scott Lahteine 7 years ago
parent
commit
d336e413aa
31 changed files with 227 additions and 282 deletions
  1. 8
    8
      Marlin/Configuration_adv.h
  2. 2
    3
      Marlin/Marlin_main.cpp
  3. 1
    1
      Marlin/boards.h
  4. 9
    11
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  5. 9
    11
      Marlin/example_configurations/Felix/Configuration_adv.h
  6. 9
    11
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration_adv.h
  7. 9
    11
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  8. 9
    11
      Marlin/example_configurations/Hephestos_2/Configuration_adv.h
  9. 9
    11
      Marlin/example_configurations/K8200/Configuration_adv.h
  10. 9
    11
      Marlin/example_configurations/K8400/Configuration_adv.h
  11. 9
    11
      Marlin/example_configurations/M150/Configuration_adv.h
  12. 9
    11
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  13. 9
    11
      Marlin/example_configurations/SCARA/Configuration_adv.h
  14. 9
    11
      Marlin/example_configurations/TAZ4/Configuration_adv.h
  15. 9
    11
      Marlin/example_configurations/TinyBoy2/Configuration_adv.h
  16. 9
    11
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  17. 9
    11
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
  18. 9
    11
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
  19. 9
    11
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  20. 9
    11
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  21. 9
    11
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  22. 9
    11
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  23. 9
    11
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration_adv.h
  24. 9
    11
      Marlin/example_configurations/makibox/Configuration_adv.h
  25. 9
    11
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  26. 9
    11
      Marlin/example_configurations/wt150/Configuration_adv.h
  27. 1
    1
      Marlin/gcode.cpp
  28. 2
    2
      Marlin/gcode.h
  29. 2
    10
      Marlin/ultralcd.cpp
  30. 2
    2
      Marlin/ultralcd_impl_DOGM.h
  31. 2
    2
      Marlin/ultralcd_impl_HD44780.h

+ 8
- 8
Marlin/Configuration_adv.h View File

@@ -223,16 +223,16 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board
229
+                                    //  pins_XXX.h file overrides this one
230
+  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0
231 231
   #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232 232
   #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233 233
                                               // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
234
+  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu
235
+#endif
236 236
 
237 237
 //===========================================================================
238 238
 //============================ Mechanical Settings ==========================
@@ -1029,7 +1029,7 @@
1029 1029
    */
1030 1030
   #define  TMC2130_ADV() {  }
1031 1031
 
1032
-#endif // ENABLED(HAVE_TMC2130)
1032
+#endif // HAVE_TMC2130
1033 1033
 
1034 1034
 // @section L6470
1035 1035
 

+ 2
- 3
Marlin/Marlin_main.cpp View File

@@ -6354,9 +6354,8 @@ inline void gcode_M42() {
6354 6354
       #endif
6355 6355
 
6356 6356
       SERIAL_PROTOCOLLNPGM(". deploy & stow 4 times");
6357
-      pinMode(PROBE_TEST_PIN, INPUT_PULLUP);
6358
-      bool deploy_state;
6359
-      bool stow_state;
6357
+      SET_INPUT_PULLUP(PROBE_TEST_PIN);
6358
+      bool deploy_state, stow_state;
6360 6359
       for (uint8_t i = 0; i < 4; i++) {
6361 6360
         servo[probe_index].move(z_servo_angle[0]); //deploy
6362 6361
         safe_delay(500);

+ 1
- 1
Marlin/boards.h View File

@@ -95,7 +95,7 @@
95 95
 #define BOARD_BAM_DICE          401  // 2PrintBeta BAM&DICE with STK drivers
96 96
 #define BOARD_BAM_DICE_DUE      402  // 2PrintBeta BAM&DICE Due with STK drivers
97 97
 #define BOARD_BQ_ZUM_MEGA_3D    503  // bq ZUM Mega 3D
98
-#define BOARD_ZRIB_V20          504  // zrib V2.0 control board (Chinese knock off RAMPS replica) 
98
+#define BOARD_ZRIB_V20          504  // zrib V2.0 control board (Chinese knock off RAMPS replica)
99 99
 
100 100
 #define MB(board) (MOTHERBOARD==BOARD_##board)
101 101
 

+ 9
- 11
Marlin/example_configurations/Cartesio/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/FolgerTech-i3-2020/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1031,7 +1029,7 @@
1031 1029
    */
1032 1030
   #define  TMC2130_ADV() {  }
1033 1031
 
1034
-#endif // ENABLED(HAVE_TMC2130)
1032
+#endif // HAVE_TMC2130
1035 1033
 
1036 1034
 // @section L6470
1037 1035
 

+ 9
- 11
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/Hephestos_2/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1006,7 +1004,7 @@
1006 1004
    */
1007 1005
   #define  TMC2130_ADV() {  }
1008 1006
 
1009
-#endif // ENABLED(HAVE_TMC2130)
1007
+#endif // HAVE_TMC2130
1010 1008
 
1011 1009
 // @section L6470
1012 1010
 

+ 9
- 11
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -236,16 +236,14 @@
236 236
 /**
237 237
  * M355 Case Light on-off / brightness
238 238
  */
239
-//#define CASE_LIGHT_ENABLE 
240
-#if ENABLED(CASE_LIGHT_ENABLE) 
241
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
242
-                                    //  pins_XXX.h file overrides this one 
243
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
244
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
245
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
246
-                                              // and if CASE_LIGHT_DEFAULT is set to on
247
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
248
-#endif 
239
+//#define CASE_LIGHT_ENABLE
240
+#if ENABLED(CASE_LIGHT_ENABLE)
241
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
242
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
243
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
244
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
245
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
246
+#endif
249 247
 
250 248
 //===========================================================================
251 249
 //============================ Mechanical Settings ==========================
@@ -1035,7 +1033,7 @@
1035 1033
    */
1036 1034
   #define  TMC2130_ADV() {  }
1037 1035
 
1038
-#endif // ENABLED(HAVE_TMC2130)
1036
+#endif // HAVE_TMC2130
1039 1037
 
1040 1038
 // @section L6470
1041 1039
 

+ 9
- 11
Marlin/example_configurations/K8400/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/M150/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1029,7 +1027,7 @@
1029 1027
    */
1030 1028
   #define  TMC2130_ADV() {  }
1031 1029
 
1032
-#endif // ENABLED(HAVE_TMC2130)
1030
+#endif // HAVE_TMC2130
1033 1031
 
1034 1032
 // @section L6470
1035 1033
 

+ 9
- 11
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/TinyBoy2/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1025,7 +1023,7 @@
1025 1023
    */
1026 1024
   #define  TMC2130_ADV() {  }
1027 1025
 
1028
-#endif // ENABLED(HAVE_TMC2130)
1026
+#endif // HAVE_TMC2130
1029 1027
 
1030 1028
 // @section L6470
1031 1029
 

+ 9
- 11
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1027,7 +1025,7 @@
1027 1025
    */
1028 1026
   #define  TMC2130_ADV() {  }
1029 1027
 
1030
-#endif // ENABLED(HAVE_TMC2130)
1028
+#endif // HAVE_TMC2130
1031 1029
 
1032 1030
 // @section L6470
1033 1031
 

+ 9
- 11
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1026,7 +1024,7 @@
1026 1024
    */
1027 1025
   #define  TMC2130_ADV() {  }
1028 1026
 
1029
-#endif // ENABLED(HAVE_TMC2130)
1027
+#endif // HAVE_TMC2130
1030 1028
 
1031 1029
 // @section L6470
1032 1030
 

+ 9
- 11
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1024,7 +1022,7 @@
1024 1022
    */
1025 1023
   #define  TMC2130_ADV() {  }
1026 1024
 
1027
-#endif // ENABLED(HAVE_TMC2130)
1025
+#endif // HAVE_TMC2130
1028 1026
 
1029 1027
 // @section L6470
1030 1028
 

+ 9
- 11
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1024,7 +1022,7 @@
1024 1022
    */
1025 1023
   #define  TMC2130_ADV() {  }
1026 1024
 
1027
-#endif // ENABLED(HAVE_TMC2130)
1025
+#endif // HAVE_TMC2130
1028 1026
 
1029 1027
 // @section L6470
1030 1028
 

+ 9
- 11
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

@@ -228,16 +228,14 @@
228 228
 /**
229 229
  * M355 Case Light on-off / brightness
230 230
  */
231
-//#define CASE_LIGHT_ENABLE 
232
-#if ENABLED(CASE_LIGHT_ENABLE) 
233
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
234
-                                    //  pins_XXX.h file overrides this one 
235
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
236
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
237
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
238
-                                              // and if CASE_LIGHT_DEFAULT is set to on
239
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
240
-#endif 
231
+//#define CASE_LIGHT_ENABLE
232
+#if ENABLED(CASE_LIGHT_ENABLE)
233
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
234
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
235
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
236
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
237
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
238
+#endif
241 239
 
242 240
 //===========================================================================
243 241
 //============================ Mechanical Settings ==========================
@@ -1029,7 +1027,7 @@
1029 1027
    */
1030 1028
   #define  TMC2130_ADV() {  }
1031 1029
 
1032
-#endif // ENABLED(HAVE_TMC2130)
1030
+#endif // HAVE_TMC2130
1033 1031
 
1034 1032
 // @section L6470
1035 1033
 

+ 9
- 11
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1024,7 +1022,7 @@
1024 1022
    */
1025 1023
   #define  TMC2130_ADV() {  }
1026 1024
 
1027
-#endif // ENABLED(HAVE_TMC2130)
1025
+#endif // HAVE_TMC2130
1028 1026
 
1029 1027
 // @section L6470
1030 1028
 

+ 9
- 11
Marlin/example_configurations/gCreate_gMax1.5+/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1031,7 +1029,7 @@
1031 1029
    */
1032 1030
   #define  TMC2130_ADV() {  }
1033 1031
 
1034
-#endif // ENABLED(HAVE_TMC2130)
1032
+#endif // HAVE_TMC2130
1035 1033
 
1036 1034
 // @section L6470
1037 1035
 

+ 9
- 11
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/wt150/Configuration_adv.h View File

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1025,7 +1023,7 @@
1025 1023
    */
1026 1024
   #define  TMC2130_ADV() {  }
1027 1025
 
1028
-#endif // ENABLED(HAVE_TMC2130)
1026
+#endif // HAVE_TMC2130
1029 1027
 
1030 1028
 // @section L6470
1031 1029
 

+ 1
- 1
Marlin/gcode.cpp View File

@@ -183,7 +183,7 @@ void GCodeParser::parse(char *p) {
183 183
     #endif
184 184
 
185 185
     if (PARAM_TEST) {
186
-    
186
+
187 187
       while (*p == ' ') p++;                    // skip spaces vetween parameters & values
188 188
       const bool has_num = DECIMAL_SIGNED(*p);  // The parameter has a number [-+0-9.]
189 189
 

+ 2
- 2
Marlin/gcode.h View File

@@ -120,7 +120,7 @@ public:
120 120
 
121 121
     // Code seen bit was set. If not found, value_ptr is unchanged.
122 122
     // This allows "if (seen('A')||seen('B'))" to use the last-found value.
123
-    static bool seen(const char c) {
123
+    static volatile bool seen(const char c) {
124 124
       const uint8_t ind = c - 'A';
125 125
       if (ind >= COUNT(param)) return false; // Only A-Z
126 126
       const bool b = TEST(codebits[ind >> 3], ind & 0x7);
@@ -132,7 +132,7 @@ public:
132 132
 
133 133
     // Code is found in the string. If not found, value_ptr is unchanged.
134 134
     // This allows "if (seen('A')||seen('B'))" to use the last-found value.
135
-    static bool seen(const char c) {
135
+    static volatile bool seen(const char c) {
136 136
       const char *p = strchr(command_args, c);
137 137
       const bool b = !!p;
138 138
       if (b) value_ptr = DECIMAL_SIGNED(p[1]) ? &p[1] : (char*)NULL;

+ 2
- 10
Marlin/ultralcd.cpp View File

@@ -1598,7 +1598,6 @@ void kill_screen(const char* lcd_msg) {
1598 1598
 
1599 1599
             //
1600 1600
             // The last G29 will record and enable but not move.
1601
-            // Since G29 is deferred, 
1602 1601
             //
1603 1602
             lcd_wait_for_move = true;
1604 1603
             enqueue_and_echo_commands_P(PSTR("G29 V1"));
@@ -2592,16 +2591,9 @@ void kill_screen(const char* lcd_msg) {
2592 2591
    *
2593 2592
    */
2594 2593
 
2595
-  /**
2596
-   *
2597
-   * Callback for LCD contrast
2598
-   *
2599
-   */
2600 2594
   #if HAS_LCD_CONTRAST
2601
-
2602 2595
     void lcd_callback_set_contrast() { set_lcd_contrast(lcd_contrast); }
2603
-
2604
-  #endif // HAS_LCD_CONTRAST
2596
+  #endif
2605 2597
 
2606 2598
   static void lcd_factory_settings() {
2607 2599
     settings.reset();
@@ -2616,7 +2608,7 @@ void kill_screen(const char* lcd_msg) {
2616 2608
     MENU_ITEM(submenu, MSG_FILAMENT, lcd_control_filament_menu);
2617 2609
 
2618 2610
     #if HAS_LCD_CONTRAST
2619
-      MENU_ITEM_EDIT_CALLBACK(int3, MSG_CONTRAST, (int) &lcd_contrast, LCD_CONTRAST_MIN, LCD_CONTRAST_MAX, lcd_callback_set_contrast, true);
2611
+      MENU_ITEM_EDIT_CALLBACK(int3, MSG_CONTRAST, (int*)&lcd_contrast, LCD_CONTRAST_MIN, LCD_CONTRAST_MAX, lcd_callback_set_contrast, true);
2620 2612
     #endif
2621 2613
     #if ENABLED(FWRETRACT)
2622 2614
       MENU_ITEM(submenu, MSG_RETRACT, lcd_control_retract_menu);

+ 2
- 2
Marlin/ultralcd_impl_DOGM.h View File

@@ -410,8 +410,8 @@ inline void lcd_implementation_status_message() {
410 410
     const uint8_t slen = lcd_strlen(lcd_status_message);
411 411
     if (slen > LCD_WIDTH) {
412 412
       // Skip any non-printing bytes
413
-      while (!PRINTABLE(lcd_status_message[status_scroll_pos])) ++status_scroll_pos;
414
-      if (++status_scroll_pos > slen - LCD_WIDTH) status_scroll_pos = 0;
413
+      while (!PRINTABLE(lcd_status_message[status_scroll_pos++])) { /* nada */ }
414
+      if (status_scroll_pos > slen - LCD_WIDTH) status_scroll_pos = 0;
415 415
     }
416 416
   #else
417 417
     lcd_print_utf(lcd_status_message);

+ 2
- 2
Marlin/ultralcd_impl_HD44780.h View File

@@ -829,8 +829,8 @@ static void lcd_implementation_status_screen() {
829 829
     const uint8_t slen = lcd_strlen(lcd_status_message);
830 830
     if (slen > LCD_WIDTH) {
831 831
       // Skip any non-printing bytes
832
-      while (!PRINTABLE(lcd_status_message[status_scroll_pos])) ++status_scroll_pos;
833
-      if (++status_scroll_pos > slen - LCD_WIDTH) status_scroll_pos = 0;
832
+      while (!PRINTABLE(lcd_status_message[status_scroll_pos++])) { /* nada */ }
833
+      if (status_scroll_pos > slen - LCD_WIDTH) status_scroll_pos = 0;
834 834
     }
835 835
   #else
836 836
     lcd_print_utf(lcd_status_message);

Loading…
Cancel
Save