mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-11 23:45:13 +00:00
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:
parent
fc863b6cd0
commit
5c166edf63
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue