diff --git a/src/main/telemetry/ghst.c b/src/main/telemetry/ghst.c index ea1ee17c2..be6678d15 100644 --- a/src/main/telemetry/ghst.c +++ b/src/main/telemetry/ghst.c @@ -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);