altos: Leave USB enabled in flight with -DDEBUG=1
authorKeith Packard <keithp@keithp.com>
Thu, 30 Jun 2016 01:33:56 +0000 (18:33 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 30 Jun 2016 02:17:45 +0000 (19:17 -0700)
This leaves the command line available for diagnostics when debugging.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_flight.c

index 9ba02bb8b24e8cc9b872e3e84a205daf1bba96db..9031a54ae070e97e42a6d182e0d4b802e9897918 100644 (file)
@@ -130,7 +130,7 @@ ao_flight(void)
                        {
                                /* Set pad mode - we can fly! */
                                ao_flight_state = ao_flight_pad;
-#if HAS_USB && !HAS_FLIGHT_DEBUG && !HAS_SAMPLE_PROFILE
+#if HAS_USB && !HAS_FLIGHT_DEBUG && !HAS_SAMPLE_PROFILE && !DEBUG
                                /* Disable the USB controller in flight mode
                                 * to save power
                                 */