store SNR in received packets

This commit is contained in:
geeksville
2020-04-30 19:58:10 -07:00
parent 1fab9c5aac
commit 968a2d7fbc
6 changed files with 30 additions and 2 deletions
+8
View File
@@ -87,6 +87,14 @@ bool RF95Interface::reconfigure()
return ERR_NONE;
}
/**
* Add SNR data to received messages
*/
void RF95Interface::addReceiveMetadata(MeshPacket *mp)
{
mp->rx_snr = lora->getSNR();
}
void RF95Interface::setStandby()
{
int err = lora->standby();