summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-06-17 13:58:41 -0700
committerKeith Packard <keithp@keithp.com>2013-06-17 13:58:41 -0700
commitb3ad488477def157e277e239e81f164b49725925 (patch)
tree7e8285eebee56720f693cf0a9c8bb22240a97265 /src
parent2e2f3f2556e714833d8b7d0f65877b07b3dc2cb5 (diff)
altos: Disable USB on all flight computers when in flight mode
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>
Diffstat (limited to 'src')
-rw-r--r--src/core/ao_flight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c
index 782e2274..1322195b 100644
--- 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
*/