mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Remove telemetry_*.c's dependency on mw.h/board.h.
Finally, the only dependency on mw.h/board.h is now mw.c itself.
This commit is contained in:
parent
7af9ca4fdc
commit
cb63f6e2b5
10 changed files with 96 additions and 34 deletions
|
@ -21,6 +21,7 @@
|
|||
#include "rx_common.h"
|
||||
#include "battery.h"
|
||||
#include "gimbal.h"
|
||||
#include "telemetry_common.h"
|
||||
#include "sensors_common.h"
|
||||
#include "sensors_acceleration.h"
|
||||
#include "sensors_barometer.h"
|
||||
|
@ -308,7 +309,7 @@ void mspInit(void)
|
|||
if (feature(FEATURE_INFLIGHT_ACC_CAL))
|
||||
availableBoxes[idx++] = BOXCALIB;
|
||||
availableBoxes[idx++] = BOXOSD;
|
||||
if (feature(FEATURE_TELEMETRY && masterConfig.telemetry_switch))
|
||||
if (feature(FEATURE_TELEMETRY && masterConfig.telemetryConfig.telemetry_switch))
|
||||
availableBoxes[idx++] = BOXTELEMETRY;
|
||||
numberBoxItems = idx;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue