mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-20 05:11:38 +02:00
fixed spinup spindown swap.
This commit is contained in:
@@ -166,14 +166,14 @@ namespace Spindles {
|
||||
sys.spindle_speed = 0;
|
||||
stop();
|
||||
if (use_delays && (_current_state != state)) {
|
||||
delay(_spinup_delay);
|
||||
delay(_spindown_delay);
|
||||
}
|
||||
} else {
|
||||
set_dir_pin(state == SpindleState::Cw);
|
||||
set_rpm(rpm);
|
||||
set_enable_pin(state != SpindleState::Disable); // must be done after setting rpm for enable features to work
|
||||
if (use_delays && (_current_state != state)) {
|
||||
delay(_spindown_delay);
|
||||
delay(_spinup_delay);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user