Fix foc_fixed16_thr.c:188:27: error: variable 'time' set but not used
and foc_float_thr.c:189:27: error: variable 'time' set but not used Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
3a6775c8ac
commit
81de5d4c59
@ -185,9 +185,10 @@ int foc_fixed16_thr(FAR struct foc_ctrl_env_s *envp)
|
||||
struct foc_mq_s handle;
|
||||
struct foc_motor_b16_s motor;
|
||||
struct foc_device_s dev;
|
||||
int time = 0;
|
||||
int ret = OK;
|
||||
int time = 0;
|
||||
int ret = OK;
|
||||
|
||||
UNUSED(time);
|
||||
DEBUGASSERT(envp);
|
||||
|
||||
PRINTFV("foc_fixed_thr, id=%d\n", envp->id);
|
||||
|
@ -186,9 +186,10 @@ int foc_float_thr(FAR struct foc_ctrl_env_s *envp)
|
||||
struct foc_mq_s handle;
|
||||
struct foc_motor_f32_s motor;
|
||||
struct foc_device_s dev;
|
||||
int time = 0;
|
||||
int ret = OK;
|
||||
int time = 0;
|
||||
int ret = OK;
|
||||
|
||||
UNUSED(time);
|
||||
DEBUGASSERT(envp);
|
||||
|
||||
PRINTFV("foc_float_thr, id=%d\n", envp->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user