1
0
Fork 0
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:
Martin Budden 2016-12-04 22:25:42 +00:00
parent 06e871406e
commit 229f6d14d4
7 changed files with 8 additions and 14 deletions

View file

@ -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