diff --git a/libs/libdsp/lib_motor.c b/libs/libdsp/lib_motor.c index 7998a1ec9ed..21c835da820 100644 --- a/libs/libdsp/lib_motor.c +++ b/libs/libdsp/lib_motor.c @@ -390,7 +390,7 @@ void motor_phy_params_init(FAR struct motor_phy_params_s *phy, uint8_t poles, DEBUGASSERT(phy != NULL); phy->p = poles; - phy->res_base = res_base; + phy->res_base = res; phy->ind = ind; phy->one_by_ind = 1.0f/ind;