1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Merge pull request #4771 from martinbudden/bfa_accgyro_struct_alignment

Improved accgyro device structure alignment
This commit is contained in:
Michael Keller 2017-12-18 16:03:27 +13:00 committed by GitHub
commit c3de899d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 22 deletions

View file

@ -319,7 +319,6 @@ bool accInit(uint32_t gyroSamplingInverval)
memset(&acc, 0, sizeof(acc));
// copy over the common gyro mpu settings
acc.dev.bus = *gyroSensorBus();
acc.dev.mpuConfiguration = *gyroMpuConfiguration();
acc.dev.mpuDetectionResult = *gyroMpuDetectionResult();
acc.dev.acc_high_fsr = accelerometerConfig()->acc_high_fsr;
if (!accDetect(&acc.dev, accelerometerConfig()->acc_hardware)) {