Add rssi meta data to the rf95 interface

This commit is contained in:
Jm Casler 2022-02-28 17:07:31 -08:00
parent e5e13d78c3
commit ac8ba706f0

View File

@ -140,6 +140,8 @@ bool RF95Interface::reconfigure()
void RF95Interface::addReceiveMetadata(MeshPacket *mp) void RF95Interface::addReceiveMetadata(MeshPacket *mp)
{ {
mp->rx_snr = lora->getSNR(); mp->rx_snr = lora->getSNR();
mp->rx_rssi = lround(lora->getRSSI());
} }
void RF95Interface::setStandby() void RF95Interface::setStandby()