|
@ -2057,26 +2057,21 @@ static void clean_up_after_endstop_or_probe_move() { |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(PROBING_FANS_OFF) |
|
|
#if ENABLED(PROBING_FANS_OFF) |
|
|
void fans_pause(bool p) { |
|
|
|
|
|
if (p == fans_paused) { // If called out of order something is wrong
|
|
|
|
|
|
SERIAL_ERROR_START; |
|
|
|
|
|
SERIAL_ERRORPGM("Fans already "); |
|
|
|
|
|
if (!fans_paused) SERIAL_ERRORPGM("un"); |
|
|
|
|
|
SERIAL_ERRORLNPGM("paused!"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (p) |
|
|
void fans_pause(const bool p) { |
|
|
for (uint8_t x = 0;x < FAN_COUNT;x++) { |
|
|
if (p != fans_paused) { |
|
|
paused_fanSpeeds[x] = fanSpeeds[x]; |
|
|
fans_paused = p; |
|
|
fanSpeeds[x] = 0; |
|
|
if (p) |
|
|
} |
|
|
for (uint8_t x = 0; x < FAN_COUNT; x++) { |
|
|
else |
|
|
paused_fanSpeeds[x] = fanSpeeds[x]; |
|
|
for (uint8_t x = 0;x < FAN_COUNT;x++) |
|
|
fanSpeeds[x] = 0; |
|
|
fanSpeeds[x] = paused_fanSpeeds[x]; |
|
|
} |
|
|
|
|
|
else |
|
|
fans_paused = p; |
|
|
for (uint8_t x = 0; x < FAN_COUNT; x++) |
|
|
|
|
|
fanSpeeds[x] = paused_fanSpeeds[x]; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endif // PROBING_FANS_OFF
|
|
|
#endif // PROBING_FANS_OFF
|
|
|
|
|
|
|
|
|
#if HAS_BED_PROBE |
|
|
#if HAS_BED_PROBE |
|
@ -2091,18 +2086,16 @@ static void clean_up_after_endstop_or_probe_move() { |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if QUIET_PROBING |
|
|
#if QUIET_PROBING |
|
|
void probing_pause(bool pause) { |
|
|
void probing_pause(const bool p) { |
|
|
#if ENABLED(PROBING_HEATERS_OFF) |
|
|
#if ENABLED(PROBING_HEATERS_OFF) |
|
|
thermalManager.pause(pause); |
|
|
thermalManager.pause(p); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(PROBING_FANS_OFF) |
|
|
#if ENABLED(PROBING_FANS_OFF) |
|
|
fans_pause(pause); |
|
|
fans_pause(p); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
if (p) safe_delay(25); |
|
|
if(pause) safe_delay(25); |
|
|
|
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif // QUIET_PROBING
|
|
|
|
|
|
|
|
|
#if ENABLED(BLTOUCH) |
|
|
#if ENABLED(BLTOUCH) |
|
|
|
|
|
|
|
|