updated rssi reading
This commit is contained in:
parent
8ec69c31b9
commit
066007d616
|
@ -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(){
|
||||||
|
|
Loading…
Reference in New Issue