summaryrefslogtreecommitdiff
path: root/src/core/ao_flight.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ao_flight.h')
-rw-r--r--src/core/ao_flight.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/ao_flight.h b/src/core/ao_flight.h
index c7c02ccf..01d21c11 100644
--- a/src/core/ao_flight.h
+++ b/src/core/ao_flight.h
@@ -41,7 +41,11 @@ extern __pdata enum ao_flight_state ao_flight_state;
extern __pdata uint16_t ao_boost_tick;
extern __pdata uint16_t ao_motor_number;
-#if HAS_IMU
+#if HAS_IMU || HAS_MMA655X
+#define HAS_SENSOR_ERRORS 1
+#endif
+
+#if HAS_SENSOR_ERRORS
extern __xdata uint8_t ao_sensor_errors;
#endif