mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Moved accZero and magZero out of sensorTrims into acc and compass config
This commit is contained in:
parent
06e871406e
commit
229f6d14d4
7 changed files with 8 additions and 14 deletions
|
@ -158,7 +158,7 @@ static void taskUpdateRxMain(timeUs_t currentTimeUs)
|
|||
static void taskUpdateCompass(timeUs_t currentTimeUs)
|
||||
{
|
||||
if (sensors(SENSOR_MAG)) {
|
||||
compassUpdate(currentTimeUs, &sensorTrims()->magZero);
|
||||
compassUpdate(currentTimeUs, &compassConfig()->magZero);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue