From 1d7dd2958f7585968e00b4e06ebb6fb648d15c5f Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 22 Mar 2026 19:27:57 +0100 Subject: [PATCH] or equal to --- xrd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xrd.py b/xrd.py index 02b8a1f..eeca5a0 100644 --- a/xrd.py +++ b/xrd.py @@ -128,8 +128,8 @@ def process_command(tef: AutoFMAM, data: bytes, state: State, conn: socket.socke mode = TEF6686.TuneTo_Mode.FM_Jump if tef.modulation == Modulation.AM: mode = TEF6686.TuneTo_Mode.Preset - if freq < 27000: tef.modulation = Modulation.AM - elif freq > 64000: tef.modulation = Modulation.FM + if freq <= 27000: tef.modulation = Modulation.AM + elif freq >= 64000: tef.modulation = Modulation.FM else: out += f"!Invalid frequency".encode() continue