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:
commit
c3de899d47
4 changed files with 27 additions and 22 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue