Skip to content

Commit 71991e7

Browse files
committed
Add missing coding-rates for TXPK CodR.
Closes #217.
1 parent 2ef079d commit 71991e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/backend/semtechudp/packets/pull_resp.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ func GetPullRespPacket(protoVersion uint8, randomToken uint16, frame *gw.Downlin
117117
packet.Payload.TXPK.CodR = "4/7"
118118
case gw.CodeRate_CR_4_8:
119119
packet.Payload.TXPK.CodR = "4/8"
120+
case gw.CodeRate_CR_LI_4_5:
121+
packet.Payload.TXPK.CodR = "4/5LI"
122+
case gw.CodeRate_CR_LI_4_6:
123+
packet.Payload.TXPK.CodR = "4/6LI"
124+
case gw.CodeRate_CR_LI_4_8:
125+
packet.Payload.TXPK.CodR = "4/8LI"
120126
default:
121127
return PullRespPacket{}, fmt.Errorf("invalid CodeRate: %s", lora.GetCodeRate())
122128
}

0 commit comments

Comments
 (0)