Skip to content

Commit

Permalink
Fix disabling ADR (when ADR algorithm is set in DP).
Browse files Browse the repository at this point in the history
Closes #538.
  • Loading branch information
brocaar committed Oct 1, 2021
1 parent 5831d6b commit 4e7fdb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/downlink/data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,9 @@ func requestChannelMaskReconfiguration(ctx *dataContext) error {

func requestADRChange(ctx *dataContext) error {
conf := config.Get()
if conf.NetworkServer.NetworkSettings.DisableADR {
return nil
}

var maxTxPowerIndex int
var requiredSNRforDR float32
Expand Down

0 comments on commit 4e7fdb3

Please sign in to comment.