mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-30 06:31:01 +00:00
store SNR in received packets
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user