✨ Update/extend Quiet Probing (#22205)
This commit is contained in:
@ -1248,7 +1248,8 @@
|
||||
//#define WAIT_FOR_HOTEND // Wait for hotend to heat back up between probes (to improve accuracy & prevent cold extrude)
|
||||
#endif
|
||||
//#define PROBING_FANS_OFF // Turn fans off when probing
|
||||
//#define PROBING_STEPPERS_OFF // Turn steppers off (unless needed to hold position) when probing
|
||||
//#define PROBING_ESTEPPERS_OFF // Turn all extruder steppers off when probing
|
||||
//#define PROBING_STEPPERS_OFF // Turn all steppers off (unless needed to hold position) when probing (including extruders)
|
||||
//#define DELAY_BEFORE_PROBING 200 // (ms) To prevent vibrations from triggering piezo sensors
|
||||
|
||||
// Require minimum nozzle and/or bed temperature for probing
|
||||
|
@ -3099,6 +3099,7 @@
|
||||
#endif
|
||||
#else
|
||||
#undef NOZZLE_TO_PROBE_OFFSET
|
||||
#undef PROBING_STEPPERS_OFF
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -3141,18 +3142,26 @@
|
||||
/**
|
||||
* Heater, Fan, and Probe interactions
|
||||
*/
|
||||
#if FAN_COUNT == 0
|
||||
#undef PROBING_FANS_OFF
|
||||
#if !HAS_FAN
|
||||
#undef ADAPTIVE_FAN_SLOWING
|
||||
#undef NO_FAN_SLOWING_IN_PID_TUNING
|
||||
#endif
|
||||
|
||||
#if HAS_BED_PROBE && (EITHER(PROBING_HEATERS_OFF, PROBING_FANS_OFF) || DELAY_BEFORE_PROBING > 0)
|
||||
#define HAS_QUIET_PROBING 1
|
||||
#if !BOTH(HAS_BED_PROBE, HAS_FAN)
|
||||
#undef PROBING_FANS_OFF
|
||||
#endif
|
||||
#if !BOTH(HAS_BED_PROBE, HAS_EXTRUDERS)
|
||||
#undef PROBING_ESTEPPERS_OFF
|
||||
#endif
|
||||
#if BOTH(PROBING_STEPPERS_OFF, PROBING_ESTEPPERS_OFF)
|
||||
#undef PROBING_ESTEPPERS_OFF
|
||||
#warning "PROBING_STEPPERS_OFF includes PROBING_ESTEPPERS_OFF. Disabling PROBING_ESTEPPERS_OFF."
|
||||
#endif
|
||||
#if EITHER(ADVANCED_PAUSE_FEATURE, PROBING_HEATERS_OFF)
|
||||
#define HEATER_IDLE_HANDLER 1
|
||||
#endif
|
||||
#if HAS_BED_PROBE && (ANY(PROBING_HEATERS_OFF, PROBING_STEPPERS_OFF, PROBING_ESTEPPERS_OFF, PROBING_FANS_OFF) || DELAY_BEFORE_PROBING > 0)
|
||||
#define HAS_QUIET_PROBING 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Advanced Pause - Filament Change
|
||||
|
@ -245,6 +245,7 @@ xyz_pos_t Probe::offset; // Initialized by settings.load()
|
||||
void Probe::set_probing_paused(const bool dopause) {
|
||||
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 (dopause) {
|
||||
@ -253,7 +254,7 @@ xyz_pos_t Probe::offset; // Initialized by settings.load()
|
||||
DISABLE_AXIS_X();
|
||||
DISABLE_AXIS_Y();
|
||||
#endif
|
||||
disable_e_steppers();
|
||||
IF_DISABLED(PROBING_ESTEPPERS_OFF, disable_e_steppers());
|
||||
}
|
||||
else {
|
||||
#if DISABLED(DELTA)
|
||||
|
Reference in New Issue
Block a user