Skip to content

Commit 3ac269a

Browse files
committed
concentratord: fix bandwidth kHz to Hz conversion.
1 parent 463423e commit 3ac269a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

internal/backend/concentratord/concentratord.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,11 @@ func (b *Backend) GetSubscribeEventChan() chan events.Subscribe {
181181

182182
// SendDownlinkFrame sends the given downlink frame.
183183
func (b *Backend) SendDownlinkFrame(pl gw.DownlinkFrame) error {
184-
loRaModInfo := pl.GetTxInfo().GetLoraModulationInfo()
185-
if loRaModInfo != nil {
186-
loRaModInfo.Bandwidth = loRaModInfo.Bandwidth * 1000
184+
for i := range pl.GetItems() {
185+
loRaModInfo := pl.Items[i].GetTxInfo().GetLoraModulationInfo()
186+
if loRaModInfo != nil {
187+
loRaModInfo.Bandwidth = loRaModInfo.Bandwidth * 1000
188+
}
187189
}
188190

189191
var downlinkID uuid.UUID

0 commit comments

Comments
 (0)