|
|
@ -250,21 +250,16 @@ xyz_pos_t Probe::offset; // Initialized by settings.load() |
|
|
|
TERN_(PROBING_HEATERS_OFF, thermalManager.pause_heaters(dopause)); |
|
|
|
TERN_(PROBING_FANS_OFF, thermalManager.set_fans_paused(dopause)); |
|
|
|
TERN_(PROBING_ESTEPPERS_OFF, if (dopause) disable_e_steppers()); |
|
|
|
#if ENABLED(PROBING_STEPPERS_OFF) |
|
|
|
IF_DISABLED(DELTA, static uint8_t old_trusted); |
|
|
|
#if ENABLED(PROBING_STEPPERS_OFF) && DISABLED(DELTA) |
|
|
|
static uint8_t old_trusted; |
|
|
|
if (dopause) { |
|
|
|
#if DISABLED(DELTA) |
|
|
|
old_trusted = axis_trusted; |
|
|
|
DISABLE_AXIS_X(); |
|
|
|
DISABLE_AXIS_Y(); |
|
|
|
#endif |
|
|
|
IF_DISABLED(PROBING_ESTEPPERS_OFF, disable_e_steppers()); |
|
|
|
} |
|
|
|
else { |
|
|
|
#if DISABLED(DELTA) |
|
|
|
if (TEST(old_trusted, X_AXIS)) ENABLE_AXIS_X(); |
|
|
|
if (TEST(old_trusted, Y_AXIS)) ENABLE_AXIS_Y(); |
|
|
|
#endif |
|
|
|
axis_trusted = old_trusted; |
|
|
|
} |
|
|
|
#endif |
|
|
|