mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-07 20:31:20 +08:00
industry/foc/fixed16/foc_ang_hall.c: fix warning
This commit is contained in:
parent
9076c899d4
commit
5a9b3a70f7
@ -462,7 +462,9 @@ static int foc_angle_hl_run_b16(FAR foc_angle_b16_t *h,
|
|||||||
FAR struct foc_hall_b16_s *hl = NULL;
|
FAR struct foc_hall_b16_s *hl = NULL;
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
int8_t sector = -1;
|
int8_t sector = -1;
|
||||||
|
#ifdef CONFIG_INDUSTRY_FOC_ANGLE_HALL_EST
|
||||||
b16_t tmp1 = 0;
|
b16_t tmp1 = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
DEBUGASSERT(h);
|
DEBUGASSERT(h);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user