You've already forked TEF6686_Driver
Implement most 86 commands and move to struct
This commit is contained in:
3
xrd.py
3
xrd.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user