You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/11/04 18:51:06 UTC

[incubator-nuttx-apps] 02/06: industry/foc/fixed16/foc_ang_hall.c: fix warning

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 5a9b3a70f7511bde360ea99bb35e1bafa4eb8c7c
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Nov 1 18:57:22 2021 +0100

    industry/foc/fixed16/foc_ang_hall.c: fix warning
---
 industry/foc/fixed16/foc_ang_hall.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/industry/foc/fixed16/foc_ang_hall.c b/industry/foc/fixed16/foc_ang_hall.c
index b5e73c2..905e0f7 100644
--- a/industry/foc/fixed16/foc_ang_hall.c
+++ b/industry/foc/fixed16/foc_ang_hall.c
@@ -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;
   int                        ret    = OK;
   int8_t                     sector = -1;
+#ifdef CONFIG_INDUSTRY_FOC_ANGLE_HALL_EST
   b16_t                      tmp1   = 0;
+#endif
 
   DEBUGASSERT(h);