From e26cf2feb91d5400056c5175f65ab9c04e02672e Mon Sep 17 00:00:00 2001 From: Marco Cogoni Date: Sat, 1 May 2021 15:13:35 +0200 Subject: [PATCH] fixed regression of radio_mode unknown when CAT not started --- supersdr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supersdr.py b/supersdr.py index f779d69..6426444 100755 --- a/supersdr.py +++ b/supersdr.py @@ -702,7 +702,8 @@ def draw_lines(surface, wf_height, radio_mode, mouse): cat_radio.get_mode() radio_mode = cat_radio.radio_mode else: - del cat_radio + radio_mode = "USB" + cat_radio = None except: cat_radio = None radio_mode = "USB"