|
|
@ -2717,7 +2717,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/ |
|
|
|
Draw_Float(ui.brightness, row, false, 1); |
|
|
|
} |
|
|
|
else |
|
|
|
Modify_Value(ui.brightness, MIN_LCD_BRIGHTNESS, MAX_LCD_BRIGHTNESS, 1, ui.refresh_brightness); |
|
|
|
Modify_Value(ui.brightness, LCD_BRIGHTNESS_MIN, LCD_BRIGHTNESS_MAX, 1, ui.refresh_brightness); |
|
|
|
break; |
|
|
|
case VISUAL_TIME_FORMAT: |
|
|
|
if (draw) { |
|
|
@ -3879,7 +3879,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/ |
|
|
|
Draw_Float(ui.brightness, row, false, 1); |
|
|
|
} |
|
|
|
else |
|
|
|
Modify_Value(ui.brightness, MIN_LCD_BRIGHTNESS, MAX_LCD_BRIGHTNESS, 1, ui.refresh_brightness); |
|
|
|
Modify_Value(ui.brightness, LCD_BRIGHTNESS_MIN, LCD_BRIGHTNESS_MAX, 1, ui.refresh_brightness); |
|
|
|
break; |
|
|
|
} |
|
|
|
break; |
|
|
@ -4800,6 +4800,10 @@ void CrealityDWINClass::Update() { |
|
|
|
|
|
|
|
void MarlinUI::update() { CrealityDWIN.Update(); } |
|
|
|
|
|
|
|
#if HAS_LCD_BRIGHTNESS |
|
|
|
void MarlinUI::_set_brightness() { DWIN_LCD_Brightness(backlight ? brightness : 0); } |
|
|
|
#endif |
|
|
|
|
|
|
|
void CrealityDWINClass::State_Update() { |
|
|
|
if ((print_job_timer.isRunning() || print_job_timer.isPaused()) != printing) { |
|
|
|
if (!printing) Start_Print(card.isFileOpen() || TERN0(POWER_LOSS_RECOVERY, recovery.valid())); |
|
|
|