fixes bug receiving inconsistent level updates

patch bump
This commit is contained in:
onyx-and-iris 2026-03-07 15:44:32 +00:00
parent 5f7b62a0e0
commit 98ec9b715f
2 changed files with 3 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "vban-cmd"
version = "2.10.0"
version = "2.10.1"
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
license = { text = "MIT" }

View File

@ -124,16 +124,11 @@ def comp(t0: tuple, t1: tuple) -> Iterator[bool]:
"""
Generator function, accepts two tuples of dB values.
Evaluates equality of each member in both tuples.
Only ignores changes when levels are very quiet (below -72 dB).
Returns True when levels are equal (no change), False when different.
"""
for a, b in zip(t0, t1):
# If both values are very quiet (below -72dB), ignore small changes
if a <= -72.0 and b <= -72.0:
yield a == b # Both quiet, check if they're equal
else:
yield a != b # At least one has significant level, detect changes
yield a == b
def deep_merge(dict1, dict2):