From: Keith Packard Date: Sat, 18 May 2013 09:54:55 +0000 (-0700) Subject: altos: Check for packet mode before trying to disable it in flight code X-Git-Tag: 1.2.9.4~189^2~38 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=82afe3a3b737c43dbeaad41ea5af1841357297a6;hp=52063c2679752033135fff928c7686e368d2a825 altos: Check for packet mode before trying to disable it in flight code This is only relevant for telemini Signed-off-by: Keith Packard --- diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c index 9d9d4c6e..782e2274 100644 --- a/src/core/ao_flight.c +++ b/src/core/ao_flight.c @@ -124,7 +124,7 @@ ao_flight(void) 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