summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-10-07 21:51:30 -0700
committerKeith Packard <keithp@keithp.com>2013-10-07 21:51:30 -0700
commit4254de22864de2ed7ae5928c6b8bfd9df1c8a3fb (patch)
treed39e5770c7cf33d9de263d1146477e042b74e210 /src
parent71666409624bf544e8a55fa5ee91d2f8514a03ca (diff)
altos: Don't require an LED for ao_flight
EasyMini has no LEDs. Deal with it. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/ao_flight.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c
index 1322195b..88dc816d 100644
--- a/src/core/ao_flight.c
+++ b/src/core/ao_flight.c
@@ -134,8 +134,10 @@ ao_flight(void)
ao_rdf_set(1);
ao_telemetry_set_interval(AO_TELEMETRY_INTERVAL_PAD);
#endif
+#if HAS_LED
/* signal successful initialization by turning off the LED */
ao_led_off(AO_LED_RED);
+#endif
} else {
/* Set idle mode */
ao_flight_state = ao_flight_idle;
@@ -145,8 +147,10 @@ ao_flight(void)
ao_packet_slave_start();
#endif
+#if HAS_LED
/* signal successful initialization by turning off the LED */
ao_led_off(AO_LED_RED);
+#endif
}
/* wakeup threads due to state change */
ao_wakeup(DATA_TO_XDATA(&ao_flight_state));