1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 09:45:37 +03:00

Remove sensor_compass.c's dependency on mw.h/board.h.

Also changed type of magZero from int16_t[3] to
int16_flightDynamicsTrims_t.
This commit is contained in:
Dominic Clifton 2014-04-23 00:15:55 +01:00
parent 1464b7398a
commit e963496263
4 changed files with 37 additions and 22 deletions

View file

@ -483,7 +483,7 @@ void loop(void)
case 0:
taskOrder++;
#ifdef MAG
if (sensors(SENSOR_MAG) && compassGetADC())
if (sensors(SENSOR_MAG) && compassGetADC(&masterConfig.magZero))
break;
#endif
case 1: