updated rssi reading

This commit is contained in:
morgan 2015-07-09 08:33:12 -07:00
parent 8ec69c31b9
commit 066007d616
1 changed files with 1 additions and 1 deletions

View File

@ -925,7 +925,7 @@ bool HamShield::getPreDeEmphEnabled(){
int16_t HamShield::readRSSI(){ int16_t HamShield::readRSSI(){
I2Cdev::readBitsW(devAddr, A1846S_RSSI_REG, A1846S_RSSI_BIT, A1846S_RSSI_LENGTH, radio_i2c_buf); 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; return rssi;
} }
uint16_t HamShield::readVSSI(){ uint16_t HamShield::readVSSI(){