altos: Disable USB on all flight computers when in flight mode
authorKeith Packard <keithp@keithp.com>
Mon, 17 Jun 2013 20:58:41 +0000 (13:58 -0700)
committerKeith 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

index 782e22744c434dc28e9356d60708ef728f7e9380..1322195beb2ca4d0e1cb5ddab0c99580e7f2abe5 100644 (file)
@@ -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
                                 */