summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-06-17 12:35:23 -0700
committerKeith Packard <keithp@keithp.com>2018-06-17 12:35:23 -0700
commit9ece56e3ad76af6ae623ad7a6782c0c933839be8 (patch)
tree8ec1bd6c65d80fb07e1fb26f27c815e72a131cef
parentcef5a5725e3bf2c17965599bd76eb93cb05a0f80 (diff)
altos/ao_pad: Move LED test to the monitor task
It sets the LEDs, so it's best to not start doing that until we've tested them. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/drivers/ao_pad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/ao_pad.c b/src/drivers/ao_pad.c
index d2b22b95..c6efc311 100644
--- a/src/drivers/ao_pad.c
+++ b/src/drivers/ao_pad.c
@@ -195,6 +195,9 @@ ao_pad_monitor(void)
__pdata uint16_t arm_beep_time = 0;
sample = ao_data_head;
+ ao_led_set(LEDS_AVAILABLE);
+ ao_delay(AO_MS_TO_TICKS(1000));
+ ao_led_set(0);
for (;;) {
__pdata int16_t pyro;
@@ -370,9 +373,6 @@ ao_pad(void)
int8_t ret;
ao_pad_box = 0;
- ao_led_set(LEDS_AVAILABLE);
- ao_delay(AO_MS_TO_TICKS(500));
- ao_led_set(0);
for (;;) {
FLUSHD();
while (ao_pad_disabled)