Skip to content

Commit

Permalink
restring counter value to UINT32
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Nov 24, 2023
1 parent 048eda1 commit 5cfa906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyxcp/transport/can.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def dataReceived(self, payload: bytes, recv_timestamp: float = None):
self.processResponse(
payload,
len(payload),
counter=self.counterReceived + 1,
counter=(self.counterReceived + 1) & 0xffff,
recv_timestamp=recv_timestamp,
)

Expand Down

0 comments on commit 5cfa906

Please sign in to comment.