mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-16 00:10:11 -04:00
fix lr11x0 current rssi
This commit is contained in:
1 parent
da7419403e
commit
6dd2e2fbca
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user