aggiunti meter
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user