diff --git a/examples/foc/foc_motor_b16.c b/examples/foc/foc_motor_b16.c index 91beaa060..aeee136a0 100644 --- a/examples/foc/foc_motor_b16.c +++ b/examples/foc/foc_motor_b16.c @@ -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 diff --git a/examples/foc/foc_motor_f32.c b/examples/foc/foc_motor_f32.c index 18d11648d..be9abca0e 100644 --- a/examples/foc/foc_motor_f32.c +++ b/examples/foc/foc_motor_f32.c @@ -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