X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao_flight.c;h=1322195beb2ca4d0e1cb5ddab0c99580e7f2abe5;hb=b86c69d56261da54745076b1f5a9c8e8e44787c2;hp=9d9d4c6e0b3ddea72a724b1b3eacee94dbb9f76c;hpb=887209b61ac3012d0fd2206cf1016c44f59cb432;p=fw%2Faltos diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c index 9d9d4c6e..1322195b 100644 --- a/src/core/ao_flight.c +++ b/src/core/ao_flight.c @@ -117,14 +117,14 @@ 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 */ ao_usb_disable(); #endif -#if !HAS_ACCEL +#if !HAS_ACCEL && PACKET_HAS_SLAVE /* Disable packet mode in pad state on TeleMini */ ao_packet_slave_stop(); #endif