[LR11x0] Fix SNR calculation (#1161)

This commit is contained in:
jgromes 2024-07-16 21:10:47 +02:00
parent fffb1fae9f
commit 858bf6409e

View file

@ -2374,7 +2374,7 @@ int16_t LR11x0::getPacketStatusLoRa(float* rssiPkt, float* snrPkt, float* signal
// pass the replies
if(rssiPkt) { *rssiPkt = (float)buff[0] / -2.0f; }
if(snrPkt) { *snrPkt = (float)buff[1] / 4.0f; }
if(snrPkt) { *snrPkt = (float)((int8_t)buff[1]) / 4.0f; }
if(signalRssiPkt) { *signalRssiPkt = buff[2]; }
return(state);