[LR11x0] Fix SNR calculation (#1161)
This commit is contained in:
parent
fffb1fae9f
commit
858bf6409e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue