72
72
#include " ../../libs/least_squares_fit.h"
73
73
#include " ../../libs/vector_3.h"
74
74
#endif
75
- #if ANY (HAS_BED_PROBE, PROBE_MANUALLY, AUTO_BED_LEVELING_UBL )
75
+ #if ENABLED (HAS_BED_PROBE)
76
76
#include " ../../module/probe.h"
77
77
#endif
78
78
@@ -2503,7 +2503,10 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
2503
2503
}
2504
2504
#if ENABLED(PREHEAT_BEFORE_LEVELING)
2505
2505
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 ();
2507
2510
#endif
2508
2511
Popup_Handler (Level);
2509
2512
gcode.process_subcommands_now_P (PSTR (" G29 P0\n G29 P1" ));
@@ -2525,7 +2528,10 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
2525
2528
}
2526
2529
#if ENABLED(PREHEAT_BEFORE_LEVELING)
2527
2530
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 ();
2529
2535
#endif
2530
2536
ubl_conf.mesh_step_warning = false ;
2531
2537
ubl_conf.manual_move ();
0 commit comments