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

Added runtime setting of gyro SPI pin

This commit is contained in:
Martin Budden 2017-03-07 09:01:16 +00:00
parent 1281d30eba
commit 60c2b812d1
24 changed files with 360 additions and 292 deletions

View file

@ -300,6 +300,7 @@ 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();
if (!accDetect(&acc.dev, accelerometerConfig()->acc_hardware)) {