Skip to content

Commit 79eda73

Browse files
authored
Update SNR algorithm
Update SNR algorithm
1 parent 41756c5 commit 79eda73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lora/LoRa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ int LoRaClass::packetRssi()
242242

243243
float LoRaClass::packetSnr()
244244
{
245-
return ((int8_t)readRegister(REG_PKT_SNR_VALUE)) * 0.25;
245+
return (((int8_t)readRegister(REG_PKT_SNR_VALUE) +2) >> 2);
246246
}
247247

248248
size_t LoRaClass::write(uint8_t byte)

0 commit comments

Comments
 (0)