Skip to content

Commit d551c2b

Browse files
committed
Apply range check agains legacy code.
See c95a582.
1 parent 14e4373 commit d551c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/legacy/gateway/pf_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func getGatewayConfig(conf gw.GatewayConfigPacket) (gatewayConfiguration, error)
192192

193193
} else if c.Modulation == band.LoRaModulation {
194194
// LoRa multi-SF channels
195-
if multiSFCounter > channelCount {
195+
if multiSFCounter >= channelCount {
196196
return gc, errors.New("gateway: exceeded maximum number of multi-sf channels")
197197
}
198198

0 commit comments

Comments
 (0)