Revert "Fix RSSI offset for pre-msg RSSI notification"

This commit is contained in:
Mark Qvist 2019-10-29 20:35:53 +01:00 committed by GitHub
parent 454de10ee9
commit 544eb85eef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View file

@ -219,12 +219,6 @@ uint8_t LoRaClass::packetRssiRaw() {
int LoRaClass::packetRssi() {
int pkt_rssi = (int)readRegister(REG_PKT_RSSI_VALUE);
int8_t pkt_snr = ((int8_t)readRegister(REG_PKT_SNR_VALUE));
if pkt_snr < 0 {
pkt_rssi = pkt_rssi * 16 / 15;
} else {
pkt_rssi += pkt_snr / 4;
}
// TODO: change this to look at the actual model code
if (_frequency < 820E6) pkt_rssi -= 7;
pkt_rssi -= 157;