diff --git a/platformio.ini b/platformio.ini index 77e9cf214a..4c59182140 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 diff --git a/src/mesh/LR11x0Interface.cpp b/src/mesh/LR11x0Interface.cpp index 8042038a30..bbba8dac01 100644 --- a/src/mesh/LR11x0Interface.cpp +++ b/src/mesh/LR11x0Interface.cpp @@ -318,9 +318,10 @@ template bool LR11x0Interface::sleep() return true; } -// LR11x0 chips do not support getRSSI(bool) for instantaneous RSSI - noise floor measurement is disabled for these chips template int16_t LR11x0Interface::getCurrentRSSI() { - return 1; + float rssi = -110; + lora.getRssiInst(&rssi); + return (int16_t)round(rssi); } #endif