Skip to content

Commit 118b734

Browse files
committed
Manual Probing Preheat Fix MarlinFirmware#2
1 parent 611db7d commit 118b734

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Marlin/src/lcd/extui/lib/creality_dwin/creality_dwin.cpp

+9-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
#include "../../libs/least_squares_fit.h"
7373
#include "../../libs/vector_3.h"
7474
#endif
75-
#if ANY(HAS_BED_PROBE, PROBE_MANUALLY, AUTO_BED_LEVELING_UBL)
75+
#if ENABLED(HAS_BED_PROBE)
7676
#include "../../module/probe.h"
7777
#endif
7878

@@ -2503,7 +2503,10 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
25032503
}
25042504
#if ENABLED(PREHEAT_BEFORE_LEVELING)
25052505
Popup_Handler(Heating);
2506-
probe.preheat_for_probing(LEVELING_NOZZLE_TEMP, LEVELING_BED_TEMP);
2506+
thermalManager.setTargetHotend(LEVELING_NOZZLE_TEMP, 0);
2507+
thermalManager.setTargetBed(LEVELING_BED_TEMP);
2508+
thermalManager.wait_for_hotend(0);
2509+
thermalManager.wait_for_bed_heating();
25072510
#endif
25082511
Popup_Handler(Level);
25092512
gcode.process_subcommands_now_P(PSTR("G29 P0\nG29 P1"));
@@ -2525,7 +2528,10 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
25252528
}
25262529
#if ENABLED(PREHEAT_BEFORE_LEVELING)
25272530
Popup_Handler(Heating);
2528-
probe.preheat_for_probing(LEVELING_NOZZLE_TEMP, LEVELING_BED_TEMP);
2531+
thermalManager.setTargetHotend(LEVELING_NOZZLE_TEMP, 0);
2532+
thermalManager.setTargetBed(LEVELING_BED_TEMP);
2533+
thermalManager.wait_for_hotend(0);
2534+
thermalManager.wait_for_bed_heating();
25292535
#endif
25302536
ubl_conf.mesh_step_warning = false;
25312537
ubl_conf.manual_move();

0 commit comments

Comments
 (0)