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

View File

@@ -79,6 +79,13 @@ void SX1262Interface::setStandby()
disableInterrupt();
}
/**
* Add SNR data to received messages
*/
void SX1262Interface::addReceiveMetadata(MeshPacket *mp) {
mp->rx_snr = lora.getSNR();
}
void SX1262Interface::startReceive()
{
setStandby();