Skip to content

Commit

Permalink
[LR11x0] Fix SNR calculation (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Jul 16, 2024
1 parent fffb1fa commit 858bf64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/LR11x0/LR11x0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 858bf64

Please sign in to comment.