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:
parent
1281d30eba
commit
60c2b812d1
24 changed files with 360 additions and 292 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue