diff options
author | Keith Packard <keithp@keithp.com> | 2016-04-02 19:39:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-04-02 19:45:06 -0700 |
commit | 0ee235e1126f34987522fe852ba6ab3ac92d6cfd (patch) | |
tree | 64eb3b40528c18a4cea86d4828afc2d4e6c3aed8 /src | |
parent | 7348cc4736c9a94f9ad299edd78199b544d0e95a (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/ao_flight.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); } |