diff --git a/motor-control/firmware/stepper_motor/motor_hardware.cpp b/motor-control/firmware/stepper_motor/motor_hardware.cpp index ec422b22b..a28dcef33 100644 --- a/motor-control/firmware/stepper_motor/motor_hardware.cpp +++ b/motor-control/firmware/stepper_motor/motor_hardware.cpp @@ -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() {