Skip to content

Commit 41c9c87

Browse files
committed
@mbridak fix mode changes from radio.
1 parent c28852b commit 41c9c87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

not1mm/lib/cat_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def __getmode_rigctld(self) -> str:
342342
self.rigctrlsocket.send(b"|m\n")
343343
# get_mode:|Mode: CW|Passband: 500|RPRT 0
344344
report = self.__get_serial_string().strip()
345-
if "getmode:|" in report and "RPRT 0" in report:
345+
if "get_mode:|" in report and "RPRT 0" in report:
346346
seg_rpt = report.split("|")
347347
return seg_rpt[1].split(" ")[1]
348348
except IndexError as exception:
@@ -391,7 +391,7 @@ def __getbw_rigctld(self):
391391
self.rigctrlsocket.send(b"|m\n")
392392
# get_mode:|Mode: CW|Passband: 500|RPRT 0
393393
report = self.__get_serial_string().strip()
394-
if "getmode:|" in report and "RPRT 0" in report:
394+
if "get_mode:|" in report and "RPRT 0" in report:
395395
seg_rpt = report.split("|")
396396
return seg_rpt[2].split(" ")[1]
397397

not1mm/radio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Radio(QObject):
3535
host = None
3636
port = None
3737
modes = ""
38-
cw_list = ["CW", "CW-L", "CW-U", "CWR"]
38+
cw_list = ["CW", "CW-L", "CW-U", "CWR", "CW-R"]
3939
rtty_list = [
4040
"RTTY",
4141
"DIGI-L",

0 commit comments

Comments
 (0)