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:
2e2f3f2
)
altos: Disable USB on all flight computers when in flight mode
author
Keith Packard
<keithp@keithp.com>
Mon, 17 Jun 2013 20:58:41 +0000
(13:58 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 17 Jun 2013 20:58:41 +0000
(13:58 -0700)
There was a check to only disable USB on boards with radios, but for
EasyMini, we want to disable USB too for flight mode.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_flight.c
patch
|
blob
|
history
diff --git
a/src/core/ao_flight.c
b/src/core/ao_flight.c
index 782e22744c434dc28e9356d60708ef728f7e9380..1322195beb2ca4d0e1cb5ddab0c99580e7f2abe5 100644
(file)
--- a/
src/core/ao_flight.c
+++ b/
src/core/ao_flight.c
@@
-117,7
+117,7
@@
ao_flight(void)
{
/* Set pad mode - we can fly! */
ao_flight_state = ao_flight_pad;
-#if HAS_USB &&
HAS_RADIO &&
!HAS_FLIGHT_DEBUG && !HAS_SAMPLE_PROFILE
+#if HAS_USB && !HAS_FLIGHT_DEBUG && !HAS_SAMPLE_PROFILE
/* Disable the USB controller in flight mode
* to save power
*/