diff --git a/xrd.py b/xrd.py index cd18aec..ac99857 100644 --- a/xrd.py +++ b/xrd.py @@ -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: