Skip to content

Commit 98ec9b7

Browse files
committed
fixes bug receiving inconsistent level updates
patch bump
1 parent 5f7b62a commit 98ec9b7

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vban-cmd"
3-
version = "2.10.0"
3+
version = "2.10.1"
44
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
55
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
66
license = { text = "MIT" }

vban_cmd/util.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,11 @@ def comp(t0: tuple, t1: tuple) -> Iterator[bool]:
124124
"""
125125
Generator function, accepts two tuples of dB values.
126126
127-
Evaluates equality of each member in both tuples.
128-
Only ignores changes when levels are very quiet (below -72 dB).
127+
Returns True when levels are equal (no change), False when different.
129128
"""
130129

131130
for a, b in zip(t0, t1):
132-
# If both values are very quiet (below -72dB), ignore small changes
133-
if a <= -72.0 and b <= -72.0:
134-
yield a == b # Both quiet, check if they're equal
135-
else:
136-
yield a != b # At least one has significant level, detect changes
131+
yield a == b
137132

138133

139134
def deep_merge(dict1, dict2):

0 commit comments

Comments
 (0)