fix lr11x0 current rssi

This commit is contained in:
Benjamin Faershtein committed 2026-02-25 13:53:43 -08:00
1 parent da7419403e
commit 6dd2e2fbca
2 files changed
+4 -2

No files matched your search

+1
View File
@@ -49,6 +49,7 @@ build_flags = -Wno-missing-field-initializers
-DRADIOLIB_EXCLUDE_FSK4=1
-DRADIOLIB_EXCLUDE_APRS=1
-DRADIOLIB_EXCLUDE_LORAWAN=1
-DRADIOLIB_GODMODE=1
-DMESHTASTIC_EXCLUDE_DROPZONE=1
-DMESHTASTIC_EXCLUDE_REMOTEHARDWARE=1
-DMESHTASTIC_EXCLUDE_HEALTH_TELEMETRY=1
+3 -2
View File
@@ -318,9 +318,10 @@ template <typename T> bool LR11x0Interface<T>::sleep()
return true;
}
// LR11x0 chips do not support getRSSI(bool) for instantaneous RSSI - noise floor measurement is disabled for these chips
template <typename T> int16_t LR11x0Interface<T>::getCurrentRSSI()
{
return 1;
float rssi = -110;
lora.getRssiInst(&rssi);
return (int16_t)round(rssi);
}
#endif