🐛 Fix ProUI / JyersUI leveling preheat (#24060, #24064)

Co-Authored-By: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
Keith Bennett
2022-04-19 17:16:26 -07:00
committed by Scott Lahteine
parent 4c84769a81
commit 7fa2dcedda
4 changed files with 16 additions and 20 deletions

View File

@ -2079,7 +2079,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
#endif // HAS_HEATED_BED
#if HAS_PREHEAT
#define _PREHEAT_SUBMENU_CASE(N) case Preheat##N: preheat_submenu(N, item, TEMP_PREHEAT##N); break;
#define _PREHEAT_SUBMENU_CASE(N) case Preheat##N: preheat_submenu((N) - 1, item, TEMP_PREHEAT##N); break;
REPEAT_1(PREHEAT_COUNT, _PREHEAT_SUBMENU_CASE)
#endif
@ -2869,16 +2869,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
#if ENABLED(AUTO_BED_LEVELING_UBL)
#if ENABLED(PREHEAT_BEFORE_LEVELING)
Popup_Handler(Heating);
#if HAS_HOTEND
if (thermalManager.degTargetHotend(0) < LEVELING_NOZZLE_TEMP)
thermalManager.setTargetHotend(LEVELING_NOZZLE_TEMP, 0);
#endif
#if HAS_HEATED_BED
if (thermalManager.degTargetBed() < LEVELING_BED_TEMP)
thermalManager.setTargetBed(LEVELING_BED_TEMP);
#endif
thermalManager.wait_for_hotend(0);
TERN_(HAS_HEATED_BED, thermalManager.wait_for_bed_heating());
probe.preheat_for_probing(LEVELING_NOZZLE_TEMP, LEVELING_BED_TEMP);
#endif
#if HAS_BED_PROBE
Popup_Handler(Level);