mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Remove sensor_barometer.c's dependency on mw.h/board.h.
This also cleans the code - No magic numbers, clearly defines states, config variables grouped together, avoiding some global variable use.
This commit is contained in:
parent
c08d0ac1b3
commit
e2550ee5e1
8 changed files with 120 additions and 62 deletions
2
src/mw.c
2
src/mw.c
|
@ -489,7 +489,7 @@ void loop(void)
|
|||
case 1:
|
||||
taskOrder++;
|
||||
#ifdef BARO
|
||||
if (sensors(SENSOR_BARO) && baroUpdate())
|
||||
if (sensors(SENSOR_BARO) && baroUpdate(currentTime) != BAROMETER_ACTION_NOT_READY)
|
||||
break;
|
||||
#endif
|
||||
case 2:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue