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 2022/08/22 05:57:19 UTC
[incubator-nuttx-apps] 02/02: reset state machine to support identification once more without restart app
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 d1cbbcdb41b6743628eba4ce359f8ed93ce82fab
Author: zouboan <ff...@feedforward.com.cn>
AuthorDate: Sat Aug 20 16:08:33 2022 +0800
reset state machine to support identification once more without restart app
---
industry/foc/float/foc_ident.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/industry/foc/float/foc_ident.c b/industry/foc/float/foc_ident.c
index 1e0788179..8ffba33d0 100644
--- a/industry/foc/float/foc_ident.c
+++ b/industry/foc/float/foc_ident.c
@@ -756,6 +756,7 @@ int foc_routine_ident_run_f32(FAR foc_routine_f32_t *r,
case FOC_IDENT_RUN_DONE:
{
ret = FOC_ROUTINE_RUN_DONE;
+ i->stage = FOC_IDENT_RUN_INIT;
break;
}