mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Cleanup baro/mag/gyro/acc method names from old sensors.c
This commit is contained in:
parent
7e76fd6995
commit
9f26018abd
12 changed files with 38 additions and 43 deletions
6
src/mw.c
6
src/mw.c
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include "sensors_sonar.h"
|
||||
#include "sensors_gyro.h"
|
||||
#include "sensors_compass.h"
|
||||
#include "sensors_barometer.h"
|
||||
#include "flight_common.h"
|
||||
#include "serial_cli.h"
|
||||
#include "telemetry_common.h"
|
||||
|
@ -479,13 +481,13 @@ void loop(void)
|
|||
case 0:
|
||||
taskOrder++;
|
||||
#ifdef MAG
|
||||
if (sensors(SENSOR_MAG) && Mag_getADC())
|
||||
if (sensors(SENSOR_MAG) && compassGetADC())
|
||||
break;
|
||||
#endif
|
||||
case 1:
|
||||
taskOrder++;
|
||||
#ifdef BARO
|
||||
if (sensors(SENSOR_BARO) && Baro_update())
|
||||
if (sensors(SENSOR_BARO) && baroUpdate())
|
||||
break;
|
||||
#endif
|
||||
case 2:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue