This commit is contained in:
2026-03-21 19:06:03 +01:00
parent 98f7750041
commit 990ca7d4db
+2 -1
View File
@@ -113,11 +113,12 @@ def process_command(tef: AutoFMAM, data: bytes, state: State, conn: socket.socke
out = b""
for cmd in data.splitlines():
if cmd.startswith(b"T"):
freq = int(cmd.decode().removeprefix("T").strip()) // 10
freq = int(cmd.decode().removeprefix("T").strip())
if freq < 153 or freq > 10800: continue
tef.set_modulation(freq)
match tef.modulation:
case Modulation.FM:
freq //= 10
tef.Tune_To(TEF6686.TuneTo_Mode.FM_Jump, freq)
state.last_tune_fm = freq
case Modulation.AM: