reset state machine to support identification once more without restart app

This commit is contained in:
zouboan 2022-08-20 16:08:33 +08:00 committed by Xiang Xiao
parent bd82e8d39f
commit d1cbbcdb41

View File

@ -756,6 +756,7 @@ int foc_routine_ident_run_f32(FAR foc_routine_f32_t *r,
case FOC_IDENT_RUN_DONE: case FOC_IDENT_RUN_DONE:
{ {
ret = FOC_ROUTINE_RUN_DONE; ret = FOC_ROUTINE_RUN_DONE;
i->stage = FOC_IDENT_RUN_INIT;
break; break;
} }