or equal to
This commit is contained in:
@@ -128,8 +128,8 @@ def process_command(tef: AutoFMAM, data: bytes, state: State, conn: socket.socke
|
|||||||
mode = TEF6686.TuneTo_Mode.FM_Jump
|
mode = TEF6686.TuneTo_Mode.FM_Jump
|
||||||
if tef.modulation == Modulation.AM: mode = TEF6686.TuneTo_Mode.Preset
|
if tef.modulation == Modulation.AM: mode = TEF6686.TuneTo_Mode.Preset
|
||||||
|
|
||||||
if freq < 27000: tef.modulation = Modulation.AM
|
if freq <= 27000: tef.modulation = Modulation.AM
|
||||||
elif freq > 64000: tef.modulation = Modulation.FM
|
elif freq >= 64000: tef.modulation = Modulation.FM
|
||||||
else:
|
else:
|
||||||
out += f"!Invalid frequency".encode()
|
out += f"!Invalid frequency".encode()
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user