summaryrefslogtreecommitdiff
path: root/src/core/ao_flight.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-03-28 23:33:25 -0700
committerKeith Packard <keithp@keithp.com>2014-03-28 23:33:25 -0700
commitff4deb417a460d96645fb6934890c2c195142be3 (patch)
tree47afe66fe064a3c55ef21efccaca488875c0eef5 /src/core/ao_flight.c
parentca0bf9fb2d6323d7a454e5ce04b48d11366eee67 (diff)
altos: HAS_LED is useless; remove it
ao_flight was trying to decide whether to turn off the red LED by checking whether HAS_LED was defined. And yet, none of the flight firmware defines that anymore, except for easymini which defines it to zero. Remove all uses and defines of this value, substituting AO_LED_RED in ao_flight.c, which has to be defined for the ao_led_off call to work. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_flight.c')
-rw-r--r--src/core/ao_flight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c
index 702c3403..24099347 100644
--- a/src/core/ao_flight.c
+++ b/src/core/ao_flight.c
@@ -143,7 +143,7 @@ ao_flight(void)
ao_rdf_set(1);
ao_telemetry_set_interval(AO_TELEMETRY_INTERVAL_PAD);
#endif
-#if HAS_LED
+#if AO_LED_RED
/* signal successful initialization by turning off the LED */
ao_led_off(AO_LED_RED);
#endif
@@ -160,7 +160,7 @@ ao_flight(void)
ao_packet_slave_start();
#endif
-#if HAS_LED
+#if AO_LED_RED
/* signal successful initialization by turning off the LED */
ao_led_off(AO_LED_RED);
#endif