From 1040faabe7df0da64841bbc8da0229677a230e58 Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Wed, 8 Nov 2023 19:02:27 -0500 Subject: [PATCH] actually we just needed this i think --- motor-control/firmware/stepper_motor/motor_hardware.cpp | 3 --- 1 file changed, 3 deletions(-) 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")