From 98ec9b715f44655ead52c53d7f40db9ab8711049 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 7 Mar 2026 15:44:32 +0000 Subject: [PATCH] fixes bug receiving inconsistent level updates patch bump --- pyproject.toml | 2 +- vban_cmd/util.py | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bbc993c..d84cfdc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" } diff --git a/vban_cmd/util.py b/vban_cmd/util.py index bb8b4e4..b20348d 100644 --- a/vban_cmd/util.py +++ b/vban_cmd/util.py @@ -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):