1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 09:16:01 +03:00

Added runtime setting of gyro SPI pin

This commit is contained in:
Martin Budden 2017-03-13 16:27:58 +00:00
parent a4e345ca54
commit b3ee1409e8
20 changed files with 205 additions and 162 deletions

View file

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