You've already forked TEF6686_Driver
really?
This commit is contained in:
2
xrd.py
2
xrd.py
@@ -131,7 +131,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):
|
||||
if (FREQ_NOT_ALLOWED_RANGE and state["last_tune"] >= FREQ_NOT_ALLOWED_RANGE[0] and state["last_tune"] <= FREQ_NOT_ALLOWED_RANGE[1]) or (FREQ_NOT_ALLOWED_LIST or state["last_tune"] in FREQ_NOT_ALLOWED_LIST):
|
||||
if (FREQ_NOT_ALLOWED_RANGE and state["last_tune"] >= FREQ_NOT_ALLOWED_RANGE[0] and state["last_tune"] <= FREQ_NOT_ALLOWED_RANGE[1]) or (FREQ_NOT_ALLOWED_LIST and state["last_tune"] in FREQ_NOT_ALLOWED_LIST):
|
||||
conn.sendall(b"Sm11.25,0,0,0\n\n")
|
||||
return
|
||||
_, _, stereo, _ = d if (d := tef.FM_Get_Processing_Status()) else (None, None, 1000, None)
|
||||
|
||||
Reference in New Issue
Block a user