🩹 Fix DGUS_PREHEAT_UI enable with DGUS_LCD_CLASSIC (#24066)
This commit is contained in:
parent
28d2bc353e
commit
230db90b70
|
@ -3044,7 +3044,7 @@
|
||||||
#define HAS_TEMPERATURE 1
|
#define HAS_TEMPERATURE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_TEMPERATURE && EITHER(HAS_MARLINUI_MENU, HAS_DWIN_E3V2)
|
#if HAS_TEMPERATURE && ANY(HAS_MARLINUI_MENU, HAS_DWIN_E3V2, HAS_DGUS_LCD_CLASSIC)
|
||||||
#ifdef PREHEAT_6_LABEL
|
#ifdef PREHEAT_6_LABEL
|
||||||
#define PREHEAT_COUNT 6
|
#define PREHEAT_COUNT 6
|
||||||
#elif defined(PREHEAT_5_LABEL)
|
#elif defined(PREHEAT_5_LABEL)
|
||||||
|
|
|
@ -629,8 +629,10 @@ void DGUSScreenHandler::HandleHeaterControl(DGUS_VP_Variable &var, void *val_ptr
|
||||||
default:
|
default:
|
||||||
switch (var.VP) {
|
switch (var.VP) {
|
||||||
default: return;
|
default: return;
|
||||||
case VP_E0_BED_PREHEAT: TERN_(HAS_HOTEND, ui.preheat_all(0)); break;
|
case VP_E0_BED_PREHEAT: TERN_(HAS_HOTEND, ui.preheat_all(0)); break;
|
||||||
case VP_E1_BED_PREHEAT: TERN_(HAS_MULTI_HOTEND, ui.preheat_all(1)); break;
|
#if DISABLED(DGUS_LCD_UI_HIPRECY) && HAS_MULTI_HOTEND
|
||||||
|
case VP_E1_BED_PREHEAT: ui.preheat_all(1); break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
case 7: break; // Custom preheat
|
case 7: break; // Custom preheat
|
||||||
case 9: thermalManager.cooldown(); break; // Cool down
|
case 9: thermalManager.cooldown(); break; // Cool down
|
||||||
|
|
Loading…
Reference in a new issue