summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-18 02:54:55 -0700
committerKeith Packard <keithp@keithp.com>2013-05-18 02:54:55 -0700
commit82afe3a3b737c43dbeaad41ea5af1841357297a6 (patch)
treebccb638d83cf7ae44fec621a493f953f2d2c36e8
parent52063c2679752033135fff928c7686e368d2a825 (diff)
altos: Check for packet mode before trying to disable it in flight code
This is only relevant for telemini Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/core/ao_flight.c2
1 files changed, 1 insertions, 1 deletions
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