diff --git a/src/motor-esp32/motor_control.cpp b/src/motor-esp32/motor_control.cpp index b12b239..9d9668c 100644 --- a/src/motor-esp32/motor_control.cpp +++ b/src/motor-esp32/motor_control.cpp @@ -13,7 +13,7 @@ #include "nvs.h" #include "nvs_flash.h" -#define MC_ITERATION_TIME 1.0 / MOTOR_CONTROL_PERIOD_MS +#define MC_ITERATION_TIME (MOTOR_CONTROL_PERIOD_MS / 1000.0) #define MC_TASK_STACK_SIZE 2048