From: Keith Packard Date: Sun, 3 Apr 2016 02:39:07 +0000 (-0700) Subject: altos: Allow for flight hardware without any ADC values X-Git-Tag: 1.6.3~2^2~67 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=0ee235e1126f34987522fe852ba6ab3ac92d6cfd;p=fw%2Faltos altos: Allow for flight hardware without any ADC values Detherm has no ADC connections, so we don't need to disable the ADC when going to landed state. Signed-off-by: Keith Packard --- diff --git a/src/kernel/ao_flight.c b/src/kernel/ao_flight.c index 251dbc02..9ba02bb8 100644 --- a/src/kernel/ao_flight.c +++ b/src/kernel/ao_flight.c @@ -370,8 +370,10 @@ ao_flight(void) { ao_flight_state = ao_flight_landed; +#if HAS_ADC /* turn off the ADC capture */ ao_timer_set_adc_interval(0); +#endif ao_wakeup(DATA_TO_XDATA(&ao_flight_state)); }