From e5ec0f7e429862e0b2123c2371c2df33fd8c48d5 Mon Sep 17 00:00:00 2001 From: Ryan howard Date: Mon, 13 May 2024 13:03:59 -0400 Subject: [PATCH] enable motor before turning on the motor interrupt timer --- include/motor-control/core/stepper_motor/motion_controller.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/motor-control/core/stepper_motor/motion_controller.hpp b/include/motor-control/core/stepper_motor/motion_controller.hpp index dd12d9ac2..78d6d9006 100644 --- a/include/motor-control/core/stepper_motor/motion_controller.hpp +++ b/include/motor-control/core/stepper_motor/motion_controller.hpp @@ -200,8 +200,8 @@ class MotionController { auto check_read_sync_line() -> bool { return hardware.check_sync_in(); } void enable_motor() { - hardware.start_timer_interrupt(); hardware.activate_motor(); + hardware.start_timer_interrupt(); enabled = true; }