mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
Merge pull request #10847 from knoopx/fix-linking-no-gps
fix: linking error when USE_GPS is undefined
This commit is contained in:
commit
a527d34409
1 changed files with 2 additions and 0 deletions
|
@ -227,6 +227,7 @@ static void processGhst(void)
|
||||||
ghstFinalize(dst);
|
ghstFinalize(dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(USE_GPS)
|
||||||
if (currentSchedule & BIT(GHST_FRAME_GPS_PRIMARY_INDEX)) {
|
if (currentSchedule & BIT(GHST_FRAME_GPS_PRIMARY_INDEX)) {
|
||||||
ghstInitializeFrame(dst);
|
ghstInitializeFrame(dst);
|
||||||
ghstFrameGpsPrimaryTelemetry(dst);
|
ghstFrameGpsPrimaryTelemetry(dst);
|
||||||
|
@ -238,6 +239,7 @@ static void processGhst(void)
|
||||||
ghstFrameGpsSecondaryTelemetry(dst);
|
ghstFrameGpsSecondaryTelemetry(dst);
|
||||||
ghstFinalize(dst);
|
ghstFinalize(dst);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (currentSchedule & BIT(GHST_FRAME_MAGBARO_INDEX)) {
|
if (currentSchedule & BIT(GHST_FRAME_MAGBARO_INDEX)) {
|
||||||
ghstInitializeFrame(dst);
|
ghstInitializeFrame(dst);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue