This commit is contained in:
2026-03-21 20:35:27 +01:00
parent e948a15a7f
commit 3bc812c507
+1 -10
View File
@@ -159,16 +159,7 @@ def process_command(tef: AutoFMAM, data: bytes, state: State, conn: socket.socke
if tef.modulation == Modulation.FM: state.bw_fm = bw
else: state.bw_am = bw
tef.Set_Bandwidth(bw)
if tef.modulation == Modulation.FM: out += f"W{bw}\n".encode()
else:
out_bw = bw
match out_bw:
case 3000: out_bw = 56000
case 4000: out_bw = 64000
case 6000: out_bw = 72000
case 8000: out_bw = 84000
out += f"W{out_bw}\n".encode()
out += f"W{bw}\n".encode()
elif cmd.startswith(b"?"): out += b">XRD Python driver\n"
elif cmd.startswith(b"S"):
cmd = cmd[1:]