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:
parent
a4e345ca54
commit
b3ee1409e8
20 changed files with 205 additions and 162 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue