Skip to content

Commit

Permalink
refactor(plc4go/bacnet): remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Nov 3, 2022
1 parent c5fa0a3 commit 46cc1e1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plc4go/internal/bacnetip/Connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ type InvokeIdGenerator struct {
func (t *InvokeIdGenerator) getAndIncrement() uint8 {
t.lock.Lock()
defer t.lock.Unlock()
// If we've reached the max value for a 16 bit transaction identifier, reset back to 1
if t.currentInvokeId > 0xFF {
t.currentInvokeId = 0
}
result := t.currentInvokeId
t.currentInvokeId += 1
return result
Expand Down

0 comments on commit 46cc1e1

Please sign in to comment.