Skip to content

Commit

Permalink
[airborne] error if trying to USE_SERVOS_7AND8 and USE_I2C1 at the sa…
Browse files Browse the repository at this point in the history
…me time
  • Loading branch information
flixr committed Jun 18, 2012
1 parent c4e1c1f commit 10fc91f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@

<subsystem name="actuators" type="pwm_supervision">
<define name="SERVO_HZ" value="400"/>
<define name="USE_SERVOS_7AND8"/>
</subsystem>

<subsystem name="telemetry" type="transparent"/>
Expand Down
Expand Up @@ -27,7 +27,11 @@
#define ACTUATORS_PWM_ARCH_H

#if USE_SERVOS_7AND8
#if defined(BOARD_LISA_M) && USE_I2C1
#error "You cannot use Servos 7and8 and I2C1 at the same time"
#else
#define ACTUATORS_PWM_NB 8
#endif
#else
#define ACTUATORS_PWM_NB 6
#endif
Expand Down

0 comments on commit 10fc91f

Please sign in to comment.