process rigctld response only if needed

This commit is contained in:
DJ2LS 2022-12-27 18:04:29 +01:00
parent 5a0a766aa0
commit d6df3007db

View file

@ -185,7 +185,7 @@ class radio:
try:
data = self.send_command(b"f", True)
data = data.decode("utf-8")
if 'RPRT' not in data:
if 'RPRT' not in data and data not in [0, '0', '']:
try:
self.frequency = int(data)
except ValueError: