mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-02 19:02:35 +02:00
Moved coolant delay into the class set_state() method
This commit is contained in:
@@ -97,6 +97,7 @@ void CoolantControl::set_state(CoolantState state) {
|
||||
}
|
||||
write(state);
|
||||
sys.report_ovr_counter = 0; // Set to report change immediately
|
||||
delay_msec(int32_t(1000.0 * _delay), DwellMode::SysSuspend);
|
||||
}
|
||||
|
||||
void CoolantControl::off() {
|
||||
|
@@ -682,10 +682,7 @@ static void protocol_exec_rt_suspend() {
|
||||
if (gc_state.modal.coolant.Flood || gc_state.modal.coolant.Mist) {
|
||||
// Block if safety door re-opened during prior restore actions.
|
||||
if (!sys.suspend.bit.restartRetract) {
|
||||
// NOTE: Laser mode will honor this delay. An exhaust system is often controlled by this pin.
|
||||
config->_coolant->set_state(restore_coolant);
|
||||
// TODO: Should this be buried in _coolant->set_state() ?
|
||||
delay_msec(int32_t(1000.0 * config->_coolant->_delay), DwellMode::SysSuspend);
|
||||
}
|
||||
}
|
||||
#ifdef PARKING_ENABLE
|
||||
|
Reference in New Issue
Block a user