mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
process rigctld response only if needed
This commit is contained in:
parent
5a0a766aa0
commit
d6df3007db
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue