examples/foc: fix compilation error

fix compilatgion error:

foc_motor_f32.c: In function 'foc_motor_init':
foc_motor_f32.c:1574:7: error: label 'errout' used but not defined
 1574 |       goto errout;
This commit is contained in:
raiden00pl 2024-10-17 14:01:53 +02:00 committed by Xiang Xiao
parent fc863b6cd0
commit 5c166edf63
2 changed files with 6 additions and 4 deletions

View file

@ -1665,8 +1665,9 @@ int foc_motor_init(FAR struct foc_motor_b16_s *motor,
motor->ctrl_state = FOC_CTRL_STATE_INIT;
}
#if defined(CONFIG_EXAMPLES_FOC_SENSORED) || \
defined(CONFIG_EXAMPLES_FOC_HAVE_RUN) || \
#if defined(CONFIG_EXAMPLES_FOC_SENSORED) || \
defined(CONFIG_EXAMPLES_FOC_HAVE_RUN) || \
defined(CONFIG_EXAMPLES_FOC_HAVE_ALIGN) || \
defined(CONFIG_EXAMPLES_FOC_HAVE_IDENT)
errout:
#endif

View file

@ -1655,8 +1655,9 @@ int foc_motor_init(FAR struct foc_motor_f32_s *motor,
motor->ctrl_state = FOC_CTRL_STATE_INIT;
}
#if defined(CONFIG_EXAMPLES_FOC_SENSORED) || \
defined(CONFIG_EXAMPLES_FOC_HAVE_RUN) || \
#if defined(CONFIG_EXAMPLES_FOC_SENSORED) || \
defined(CONFIG_EXAMPLES_FOC_HAVE_RUN) || \
defined(CONFIG_EXAMPLES_FOC_HAVE_ALIGN) || \
defined(CONFIG_EXAMPLES_FOC_HAVE_IDENT)
errout:
#endif