diff options
author | Julian Oes <julian@oes.ch> | 2013-06-12 12:47:00 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-06-12 12:47:00 +0200 |
commit | ec08dec8bae403f463ebf9e9a7b71b399ed7b97a (patch) | |
tree | 9b888df8a8b20b648ee5b3b57a9dbd0b03542a1d /src/modules/gpio_led/gpio_led.c | |
parent | 7f90ebf537f226bc974a9d6023b67a9b32dccfe3 (diff) | |
download | px4-firmware-ec08dec8bae403f463ebf9e9a7b71b399ed7b97a.tar.gz px4-firmware-ec08dec8bae403f463ebf9e9a7b71b399ed7b97a.tar.bz2 px4-firmware-ec08dec8bae403f463ebf9e9a7b71b399ed7b97a.zip |
Two hacks here to make it compile
Diffstat (limited to 'src/modules/gpio_led/gpio_led.c')
-rw-r--r-- | src/modules/gpio_led/gpio_led.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/gpio_led/gpio_led.c b/src/modules/gpio_led/gpio_led.c index 43cbe74c7..542821e95 100644 --- a/src/modules/gpio_led/gpio_led.c +++ b/src/modules/gpio_led/gpio_led.c @@ -171,7 +171,8 @@ void gpio_led_cycle(FAR void *arg) /* select pattern for current status */ int pattern = 0; - if (priv->status.flag_system_armed) { + /* XXX fmu armed correct? */ + if (priv->status.flag_fmu_armed) { if (priv->status.battery_warning == VEHICLE_BATTERY_WARNING_NONE) { pattern = 0x3f; // ****** solid (armed) @@ -180,10 +181,10 @@ void gpio_led_cycle(FAR void *arg) } } else { - if (priv->status.state_machine == SYSTEM_STATE_PREFLIGHT) { + if (priv->status.arming_state == ARMING_STATE_STANDBY) { pattern = 0x00; // ______ off (disarmed, preflight check) - } else if (priv->status.state_machine == SYSTEM_STATE_STANDBY && + } else if (priv->status.arming_state == ARMING_STATE_STANDBY && priv->status.battery_warning == VEHICLE_BATTERY_WARNING_NONE) { pattern = 0x38; // ***___ slow blink (disarmed, ready) |