aggiunti meter

This commit is contained in:
Nick
2026-04-20 20:17:46 +02:00
parent 84c1f0da35
commit c2900bbb2e
10 changed files with 377 additions and 314 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ def get_actual_level(response_str: str, fallback_db: float) -> float:
for part in reversed(parts):
try:
val_int = int(part)
return val_int / 100.0 if val_int > -32768 else float('-inf')
return val_int / 100.0 if val_int > -32768 else -120.0 # <--- SOSTITUITO float('-inf') CON -120.0
except ValueError:
continue
except Exception: