Merge pull request #2029 from betaflight/gyroadc_fix

Remove volatile from gyroADC
This commit is contained in:
borisbstyle 2017-01-06 12:54:48 +01:00 committed by GitHub
commit 93dfbaee8e
2 changed files with 1 additions and 5 deletions

View File

@ -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;

View File

@ -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;