1
0

Implement most 86 commands and move to struct

This commit is contained in:
2026-02-21 14:22:13 +01:00
parent abab2730c5
commit d8228f49ea
4 changed files with 232 additions and 71 deletions

3
xrd.py
View File

@@ -119,8 +119,7 @@ def process_command(tef: TEF6686, data: bytes, state: dict, conn: socket.socket)
return out
def send_signal_status(tef: TEF6686, conn: socket.socket, state: dict):
_, _, stereo, _ = tef.FM_Get_Processing_Status()
stereo = stereo if stereo is not None else 1000 # Default to Mono
_, _, stereo, _ = d if (d := tef.FM_Get_Processing_Status()) else (None, None, 1000, None)
status, level, usn, wam, _, bandwidth, _ = tef.FM_Get_Quality_Data()
if status is None or level is None or wam is None or usn is None or bandwidth is None: return