Skip to content

Commit

Permalink
only adds delay if there is an ebrake
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Nov 27, 2023
1 parent f9f8885 commit bf6121f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motor-control/firmware/stepper_motor/motor_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ void MotorHardware::activate_motor() {
void MotorHardware::deactivate_motor() {
if (pins.ebrake.has_value()) {
gpio::set(pins.ebrake.value());
motor_hardware_delay(10);
}
motor_hardware_delay(10);
gpio::reset(pins.enable);
}
void MotorHardware::start_timer_interrupt() {
Expand Down

0 comments on commit bf6121f

Please sign in to comment.