Skip to content

Commit

Permalink
actually we just needed this i think
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Nov 9, 2023
1 parent 3c2b1b2 commit 1040faa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions motor-control/firmware/stepper_motor/motor_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,16 @@ 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()) {
gpio::set(pins.ebrake.value());
}
motor_hardware_delay(10);
gpio::reset(pins.enable);
motor_hardware_delay(10);
}
void MotorHardware::start_timer_interrupt() {
LOG("Starting timer interrupt")
Expand Down

0 comments on commit 1040faa

Please sign in to comment.