diff options
author | Keith Packard <keithp@keithp.com> | 2013-06-17 13:58:41 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-06-17 13:58:41 -0700 |
commit | b3ad488477def157e277e239e81f164b49725925 (patch) | |
tree | 7e8285eebee56720f693cf0a9c8bb22240a97265 | |
parent | 2e2f3f2556e714833d8b7d0f65877b07b3dc2cb5 (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>
-rw-r--r-- | src/core/ao_flight.c | 2 |
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 */ |