From: Keith Packard Date: Mon, 17 Jun 2013 20:58:41 +0000 (-0700) Subject: altos: Disable USB on all flight computers when in flight mode X-Git-Tag: 1.2.9.4~160 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b3ad488477def157e277e239e81f164b49725925;hp=2e2f3f2556e714833d8b7d0f65877b07b3dc2cb5 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 --- 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 */