projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7348cc4
)
altos: Allow for flight hardware without any ADC values
author
Keith Packard
<keithp@keithp.com>
Sun, 3 Apr 2016 02:39:07 +0000
(19:39 -0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/kernel/ao_flight.c
b/src/kernel/ao_flight.c
index 251dbc02a7f35eaa7994c1541af5be3800205f84..9ba02bb8b24e8cc9b872e3e84a205daf1bba96db 100644
(file)
--- 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));
}