diff --git a/stm32-modules/flex-stacker/firmware/motor_control/motor_hardware.c b/stm32-modules/flex-stacker/firmware/motor_control/motor_hardware.c index 7d191b06..e9d2205f 100644 --- a/stm32-modules/flex-stacker/firmware/motor_control/motor_hardware.c +++ b/stm32-modules/flex-stacker/firmware/motor_control/motor_hardware.c @@ -2,7 +2,6 @@ #include "stm32g4xx_hal.h" #include "stm32g4xx_it.h" #include "systemwide.h" - #include "FreeRTOS.h" #include @@ -11,7 +10,6 @@ extern "C" { #endif // __cplusplus - /******************* Motor Z *******************/ /** Motor hardware **/ #define Z_STEP_PIN (GPIO_PIN_2) @@ -348,10 +346,9 @@ bool hw_enable_motor(MotorID motor_id) { port = L_EN_PORT; pin = L_EN_PIN; status = HAL_TIM_Base_Start_IT(&_motor_hardware.motor_l.timer); - break; default: - return status == HAL_OK; + return false; } HAL_GPIO_WritePin(port, pin, GPIO_PIN_SET); return status == HAL_OK;