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

fix: linking error when USE_GPS is undefined

This commit is contained in:
Victor Martinez 2021-07-21 12:46:06 +02:00
parent 6d286e25f1
commit 452bf7b327

View file

@ -227,6 +227,7 @@ static void processGhst(void)
ghstFinalize(dst);
}
#if defined(USE_GPS)
if (currentSchedule & BIT(GHST_FRAME_GPS_PRIMARY_INDEX)) {
ghstInitializeFrame(dst);
ghstFrameGpsPrimaryTelemetry(dst);
@ -238,6 +239,7 @@ static void processGhst(void)
ghstFrameGpsSecondaryTelemetry(dst);
ghstFinalize(dst);
}
#endif
if (currentSchedule & BIT(GHST_FRAME_MAGBARO_INDEX)) {
ghstInitializeFrame(dst);