altos: Allow for flight hardware without any ADC values
authorKeith Packard <keithp@keithp.com>
Sun, 3 Apr 2016 02:39:07 +0000 (19:39 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 3 Apr 2016 02:45:06 +0000 (19:45 -0700)
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>
src/kernel/ao_flight.c

index 251dbc02a7f35eaa7994c1541af5be3800205f84..9ba02bb8b24e8cc9b872e3e84a205daf1bba96db 100644 (file)
@@ -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));
                                }