|
@ -93,6 +93,10 @@ public: |
|
|
bool dryrun, |
|
|
bool dryrun, |
|
|
reenable; |
|
|
reenable; |
|
|
|
|
|
|
|
|
|
|
|
#if HAS_MULTI_HOTEND |
|
|
|
|
|
uint8_t tool_index; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if EITHER(PROBE_MANUALLY, AUTO_BED_LEVELING_LINEAR) |
|
|
#if EITHER(PROBE_MANUALLY, AUTO_BED_LEVELING_LINEAR) |
|
|
int abl_probe_index; |
|
|
int abl_probe_index; |
|
|
#endif |
|
|
#endif |
|
@ -263,7 +267,10 @@ G29_TYPE GcodeSuite::G29() { |
|
|
*/ |
|
|
*/ |
|
|
if (!g29_in_progress) { |
|
|
if (!g29_in_progress) { |
|
|
|
|
|
|
|
|
TERN_(HAS_MULTI_HOTEND, if (active_extruder) tool_change(0)); |
|
|
#if HAS_MULTI_HOTEND |
|
|
|
|
|
abl.tool_index = active_extruder; |
|
|
|
|
|
if (active_extruder != 0) tool_change(0, true); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if EITHER(PROBE_MANUALLY, AUTO_BED_LEVELING_LINEAR) |
|
|
#if EITHER(PROBE_MANUALLY, AUTO_BED_LEVELING_LINEAR) |
|
|
abl.abl_probe_index = -1; |
|
|
abl.abl_probe_index = -1; |
|
@ -891,6 +898,8 @@ G29_TYPE GcodeSuite::G29() { |
|
|
|
|
|
|
|
|
TERN_(HAS_DWIN_E3V2_BASIC, DWIN_CompletedLeveling()); |
|
|
TERN_(HAS_DWIN_E3V2_BASIC, DWIN_CompletedLeveling()); |
|
|
|
|
|
|
|
|
|
|
|
TERN_(HAS_MULTI_HOTEND, if (abl.tool_index != 0) tool_change(abl.tool_index)); |
|
|
|
|
|
|
|
|
report_current_position(); |
|
|
report_current_position(); |
|
|
|
|
|
|
|
|
TERN_(FULL_REPORT_TO_HOST_FEATURE, set_and_report_grblstate(M_IDLE)); |
|
|
TERN_(FULL_REPORT_TO_HOST_FEATURE, set_and_report_grblstate(M_IDLE)); |
|
|