Merge pull request #2029 from betaflight/gyroadc_fix
Remove volatile from gyroADC
This commit is contained in:
commit
93dfbaee8e
|
@ -53,7 +53,7 @@ typedef struct gyroDev_s {
|
||||||
sensorGyroUpdateFuncPtr update;
|
sensorGyroUpdateFuncPtr update;
|
||||||
extiCallbackRec_t exti;
|
extiCallbackRec_t exti;
|
||||||
float scale; // scalefactor
|
float scale; // scalefactor
|
||||||
int16_t gyroADCRaw[XYZ_AXIS_COUNT];
|
volatile int16_t gyroADCRaw[XYZ_AXIS_COUNT];
|
||||||
uint8_t lpf;
|
uint8_t lpf;
|
||||||
gyroRateKHz_e gyroRateKHz;
|
gyroRateKHz_e gyroRateKHz;
|
||||||
uint8_t mpuDividerDrops;
|
uint8_t mpuDividerDrops;
|
||||||
|
|
|
@ -66,11 +66,7 @@
|
||||||
|
|
||||||
gyro_t gyro; // gyro access functions
|
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];
|
static int32_t gyroADC[XYZ_AXIS_COUNT];
|
||||||
#endif
|
|
||||||
|
|
||||||
static int32_t gyroZero[XYZ_AXIS_COUNT] = { 0, 0, 0 };
|
static int32_t gyroZero[XYZ_AXIS_COUNT] = { 0, 0, 0 };
|
||||||
static const gyroConfig_t *gyroConfig;
|
static const gyroConfig_t *gyroConfig;
|
||||||
|
|
Loading…
Reference in New Issue