mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
⚡️ Simplify PROBING_STEPPERS_OFF (#22581)
This commit is contained in:
parent
6464601411
commit
c05de6cbf8
@ -2932,10 +2932,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#if !BOTH(HAS_BED_PROBE, HAS_EXTRUDERS)
|
#if !BOTH(HAS_BED_PROBE, HAS_EXTRUDERS)
|
||||||
#undef PROBING_ESTEPPERS_OFF
|
#undef PROBING_ESTEPPERS_OFF
|
||||||
#endif
|
#elif ENABLED(PROBING_STEPPERS_OFF)
|
||||||
#if BOTH(PROBING_STEPPERS_OFF, PROBING_ESTEPPERS_OFF)
|
// PROBING_STEPPERS_OFF implies PROBING_ESTEPPERS_OFF, make sure it is defined
|
||||||
#undef PROBING_ESTEPPERS_OFF
|
#define PROBING_ESTEPPERS_OFF
|
||||||
#warning "PROBING_STEPPERS_OFF includes PROBING_ESTEPPERS_OFF. Disabling PROBING_ESTEPPERS_OFF."
|
|
||||||
#endif
|
#endif
|
||||||
#if EITHER(ADVANCED_PAUSE_FEATURE, PROBING_HEATERS_OFF)
|
#if EITHER(ADVANCED_PAUSE_FEATURE, PROBING_HEATERS_OFF)
|
||||||
#define HEATER_IDLE_HANDLER 1
|
#define HEATER_IDLE_HANDLER 1
|
||||||
|
@ -250,21 +250,16 @@ xyz_pos_t Probe::offset; // Initialized by settings.load()
|
|||||||
TERN_(PROBING_HEATERS_OFF, thermalManager.pause_heaters(dopause));
|
TERN_(PROBING_HEATERS_OFF, thermalManager.pause_heaters(dopause));
|
||||||
TERN_(PROBING_FANS_OFF, thermalManager.set_fans_paused(dopause));
|
TERN_(PROBING_FANS_OFF, thermalManager.set_fans_paused(dopause));
|
||||||
TERN_(PROBING_ESTEPPERS_OFF, if (dopause) disable_e_steppers());
|
TERN_(PROBING_ESTEPPERS_OFF, if (dopause) disable_e_steppers());
|
||||||
#if ENABLED(PROBING_STEPPERS_OFF)
|
#if ENABLED(PROBING_STEPPERS_OFF) && DISABLED(DELTA)
|
||||||
IF_DISABLED(DELTA, static uint8_t old_trusted);
|
static uint8_t old_trusted;
|
||||||
if (dopause) {
|
if (dopause) {
|
||||||
#if DISABLED(DELTA)
|
old_trusted = axis_trusted;
|
||||||
old_trusted = axis_trusted;
|
DISABLE_AXIS_X();
|
||||||
DISABLE_AXIS_X();
|
DISABLE_AXIS_Y();
|
||||||
DISABLE_AXIS_Y();
|
|
||||||
#endif
|
|
||||||
IF_DISABLED(PROBING_ESTEPPERS_OFF, disable_e_steppers());
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#if DISABLED(DELTA)
|
if (TEST(old_trusted, X_AXIS)) ENABLE_AXIS_X();
|
||||||
if (TEST(old_trusted, X_AXIS)) ENABLE_AXIS_X();
|
if (TEST(old_trusted, Y_AXIS)) ENABLE_AXIS_Y();
|
||||||
if (TEST(old_trusted, Y_AXIS)) ENABLE_AXIS_Y();
|
|
||||||
#endif
|
|
||||||
axis_trusted = old_trusted;
|
axis_trusted = old_trusted;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user