From 066007d61620a48cfd56a5036df59ece17a41b0b Mon Sep 17 00:00:00 2001 From: morgan Date: Thu, 9 Jul 2015 08:33:12 -0700 Subject: [PATCH] updated rssi reading --- HamShield.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HamShield.cpp b/HamShield.cpp index bfb4d0a..5c39012 100644 --- a/HamShield.cpp +++ b/HamShield.cpp @@ -925,7 +925,7 @@ bool HamShield::getPreDeEmphEnabled(){ int16_t HamShield::readRSSI(){ I2Cdev::readBitsW(devAddr, A1846S_RSSI_REG, A1846S_RSSI_BIT, A1846S_RSSI_LENGTH, radio_i2c_buf); - int16_t rssi = (radio_i2c_buf[0] & 0x3FF); // - 137; + int16_t rssi = (radio_i2c_buf[0] & 0x3FF) - 137; return rssi; } uint16_t HamShield::readVSSI(){