|
@@ -110,6 +110,9 @@ uint8_t lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; // Set when the LCD needs to
|
110
|
110
|
#if HAS_POWER_SWITCH
|
111
|
111
|
extern bool powersupply;
|
112
|
112
|
#endif
|
|
113
|
+ #if HAS_CASE_LIGHT
|
|
114
|
+ extern bool case_light_on;
|
|
115
|
+ #endif
|
113
|
116
|
const float manual_feedrate_mm_m[] = MANUAL_FEEDRATE;
|
114
|
117
|
static void lcd_main_menu();
|
115
|
118
|
static void lcd_tune_menu();
|
|
@@ -581,6 +584,16 @@ void kill_screen(const char* lcd_msg) {
|
581
|
584
|
START_MENU();
|
582
|
585
|
MENU_BACK(MSG_WATCH);
|
583
|
586
|
|
|
587
|
+ //
|
|
588
|
+ // Switch case light on/off
|
|
589
|
+ //
|
|
590
|
+ #if HAS_CASE_LIGHT && ENABLED(MENU_ITEM_CASE_LIGHT)
|
|
591
|
+ if (case_light_on == 0)
|
|
592
|
+ MENU_ITEM(gcode, MSG_LIGHTS_ON, PSTR("M355 S1"));
|
|
593
|
+ else
|
|
594
|
+ MENU_ITEM(gcode, MSG_LIGHTS_OFF, PSTR("M355 S0"));
|
|
595
|
+ #endif
|
|
596
|
+
|
584
|
597
|
#if ENABLED(BLTOUCH)
|
585
|
598
|
if (!endstops.z_probe_enabled && TEST_BLTOUCH())
|
586
|
599
|
MENU_ITEM(gcode, MSG_BLTOUCH_RESET, PSTR("M280 P" STRINGIFY(Z_ENDSTOP_SERVO_NR) " S" STRINGIFY(BLTOUCH_RESET)));
|
|
@@ -857,7 +870,7 @@ void kill_screen(const char* lcd_msg) {
|
857
|
870
|
|
858
|
871
|
static void lcd_dac_menu() {
|
859
|
872
|
dac_driver_getValues();
|
860
|
|
- START_MENU();
|
|
873
|
+ START_MENU();
|
861
|
874
|
MENU_BACK(MSG_CONTROL);
|
862
|
875
|
MENU_ITEM_EDIT_CALLBACK(int3, MSG_X " " MSG_DAC_PERCENT, &driverPercent[X_AXIS], 0, 100, dac_driver_commit);
|
863
|
876
|
MENU_ITEM_EDIT_CALLBACK(int3, MSG_Y " " MSG_DAC_PERCENT, &driverPercent[Y_AXIS], 0, 100, dac_driver_commit);
|
|
@@ -1547,7 +1560,7 @@ void kill_screen(const char* lcd_msg) {
|
1547
|
1560
|
MENU_ITEM(submenu, MSG_RETRACT, lcd_control_retract_menu);
|
1548
|
1561
|
#endif
|
1549
|
1562
|
#if ENABLED(DAC_STEPPER_CURRENT)
|
1550
|
|
- MENU_ITEM(submenu, MSG_DRIVE_STRENGTH, lcd_dac_menu);
|
|
1563
|
+ MENU_ITEM(submenu, MSG_DRIVE_STRENGTH, lcd_dac_menu);
|
1551
|
1564
|
#endif
|
1552
|
1565
|
|
1553
|
1566
|
#if ENABLED(EEPROM_SETTINGS)
|