From caf3fc2628c13ff38ffbaabda8aa8d146cda748e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 29 Jun 2016 18:33:56 -0700 Subject: [PATCH] altos: Leave USB enabled in flight with -DDEBUG=1 This leaves the command line available for diagnostics when debugging. Signed-off-by: Keith Packard --- src/kernel/ao_flight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/ao_flight.c b/src/kernel/ao_flight.c index 9ba02bb8..9031a54a 100644 --- a/src/kernel/ao_flight.c +++ b/src/kernel/ao_flight.c @@ -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 */ -- 2.30.2