mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 04:53:31 +00:00
util:
in comp, consider level value clean if below -60.0 vbancmd: pass tuple expansion into string format in version method. ldirty and _get_levels logic now moved into rt packet class
This commit is contained in:
@@ -61,10 +61,12 @@ def comp(t0: tuple, t1: tuple) -> Iterator[bool]:
|
||||
|
||||
Evaluates equality of each member in both tuples.
|
||||
"""
|
||||
|
||||
for a, b in zip(t0, t1):
|
||||
if b <= 9500:
|
||||
if ((1 << 16) - 1) - b <= 6000:
|
||||
yield a == b
|
||||
yield True
|
||||
else:
|
||||
yield True
|
||||
|
||||
|
||||
Socket = IntEnum("Socket", "register request response", start=0)
|
||||
|
||||
Reference in New Issue
Block a user