mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-08 00:23:30 +00:00
fix the rollover function
patch bump
This commit is contained in:
@@ -147,7 +147,4 @@ def deep_merge(dict1, dict2):
|
||||
|
||||
def bump_framecounter(framecounter: int) -> int:
|
||||
"""Increment framecounter with rollover at 0xFFFFFFFF."""
|
||||
if framecounter > 0xFFFFFFFF:
|
||||
return 0
|
||||
else:
|
||||
return framecounter + 1
|
||||
return (framecounter + 1) & 0xFFFFFFFF
|
||||
|
||||
Reference in New Issue
Block a user