diff --git a/src/main/drivers/accgyro.h b/src/main/drivers/accgyro.h index 6da30982f2..f6f9570cdb 100644 --- a/src/main/drivers/accgyro.h +++ b/src/main/drivers/accgyro.h @@ -53,7 +53,7 @@ typedef struct gyroDev_s { sensorGyroUpdateFuncPtr update; extiCallbackRec_t exti; float scale; // scalefactor - int16_t gyroADCRaw[XYZ_AXIS_COUNT]; + volatile int16_t gyroADCRaw[XYZ_AXIS_COUNT]; uint8_t lpf; gyroRateKHz_e gyroRateKHz; uint8_t mpuDividerDrops; diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index 3daa93af75..40442da09c 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -66,11 +66,7 @@ gyro_t gyro; // gyro access functions -#if defined(GYRO_USES_SPI) && defined(USE_MPU_DATA_READY_SIGNAL) -static volatile int32_t gyroADC[XYZ_AXIS_COUNT]; -#else static int32_t gyroADC[XYZ_AXIS_COUNT]; -#endif static int32_t gyroZero[XYZ_AXIS_COUNT] = { 0, 0, 0 }; static const gyroConfig_t *gyroConfig;