mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-08-07 14:02:13 -04:00
Updated SNR indication method
This commit is contained in:
parent
b30564c5fc
commit
19c4107c4e
5 changed files with 18 additions and 11 deletions
7
LoRa.cpp
7
LoRa.cpp
|
@ -235,8 +235,11 @@ int LoRaClass::packetRssi() {
|
|||
return pkt_rssi;
|
||||
}
|
||||
|
||||
float LoRaClass::packetSnr()
|
||||
{
|
||||
uint8_t LoRaClass::packetSnrRaw() {
|
||||
return readRegister(REG_PKT_SNR_VALUE);
|
||||
}
|
||||
|
||||
float LoRaClass::packetSnr() {
|
||||
return ((int8_t)readRegister(REG_PKT_SNR_VALUE)) * 0.25;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue