mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Removed a number of static config pointers
This commit is contained in:
parent
a3951a3340
commit
5851b21e4a
26 changed files with 67 additions and 173 deletions
|
@ -61,12 +61,12 @@ bool sensorsAutodetect(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
accInit(accelerometerConfig(), gyro.targetLooptime);
|
||||
accInit(gyro.targetLooptime);
|
||||
|
||||
mag.magneticDeclination = 0.0f; // TODO investigate if this is actually needed if there is no mag sensor or if the value stored in the config should be used.
|
||||
#ifdef MAG
|
||||
if (compassDetect(&mag.dev, compassConfig()->mag_hardware)) {
|
||||
compassInit(compassConfig());
|
||||
compassInit();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue