Skip to content

Commit

Permalink
pba: Fix DevAddr inference from configured NetID
Browse files Browse the repository at this point in the history
johanstokking committed Oct 20, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f4f70e5 commit 0108071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/packetbrokeragent/agent.go
Original file line number Diff line number Diff line change
@@ -178,7 +178,7 @@ func New(c *component.Component, conf *Config, opts ...Option) (*Agent, error) {
}
devAddrPrefix := types.DevAddrPrefix{
DevAddr: devAddr,
Length: uint8(conf.NetID.IDBits()),
Length: uint8(32 - types.NwkAddrBits(conf.NetID)),
}
devAddrPrefixes = append(devAddrPrefixes, devAddrPrefix)
}

0 comments on commit 0108071

Please sign in to comment.