From 452bf7b327848b89d1a903680ed86a75d7e972b9 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 21 Jul 2021 12:46:06 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20linking=20error=20when=20USE=5FGPS=20is?= =?UTF-8?q?=C2=A0undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/telemetry/ghst.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/telemetry/ghst.c b/src/main/telemetry/ghst.c index ea1ee17c26..be6678d15a 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);