Skip to content

Commit

Permalink
Merge pull request #149 from danielhrisca/master
Browse files Browse the repository at this point in the history
restrict counter value to UINT32
  • Loading branch information
christoph2 committed Nov 24, 2023
2 parents 048eda1 + 5cfa906 commit 7d970d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyxcp/transport/can.py
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 7d970d3

Please sign in to comment.