From 32ae20632a868eea96de2ac253d120037e3ba443 Mon Sep 17 00:00:00 2001 From: Sassa NF Date: Tue, 21 Jan 2025 21:39:41 +0000 Subject: [PATCH] Fixup compass compilation issues --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 5f27816..68b455b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -630,6 +630,7 @@ void osdProcess() Config config; +#ifdef USING_LR1121 void setLRFreq(float freq) { bool skipCalibration = false; @@ -655,6 +656,7 @@ void setLRFreq(float freq) radio.freqMHz = freq; radio.highFreq = (freq > 1000.0); } +#endif float getRSSI(void *param) { @@ -2071,6 +2073,7 @@ void doScan(); void reportScan(); +#ifdef COMPASS_ENABLED float getCompassHeading() { /* code */ @@ -2161,6 +2164,7 @@ float getCompassHeading() float headingDegrees = heading * 180 / M_PI; return headingDegrees; } +#endif float historicalCompassRssi[STEPS] = {999}; int compassCounter = 0;