diff --git a/motor-control/firmware/stepper_motor/motor_hardware.cpp b/motor-control/firmware/stepper_motor/motor_hardware.cpp index 0886eb787..ec422b22b 100644 --- a/motor-control/firmware/stepper_motor/motor_hardware.cpp +++ b/motor-control/firmware/stepper_motor/motor_hardware.cpp @@ -16,11 +16,9 @@ void MotorHardware::positive_direction() { gpio::set(pins.direction); } void MotorHardware::negative_direction() { gpio::reset(pins.direction); } void MotorHardware::activate_motor() { gpio::set(pins.enable); - motor_hardware_delay(10); if (pins.ebrake.has_value()) { gpio::reset(pins.ebrake.value()); } - motor_hardware_delay(10); } void MotorHardware::deactivate_motor() { if (pins.ebrake.has_value()) { @@ -28,7 +26,6 @@ void MotorHardware::deactivate_motor() { } motor_hardware_delay(10); gpio::reset(pins.enable); - motor_hardware_delay(10); } void MotorHardware::start_timer_interrupt() { LOG("Starting timer interrupt")