moved rig init into own function
This commit is contained in:
parent
6ea89ef665
commit
dec90db143
|
@ -87,7 +87,9 @@ class QRZLogger():
|
||||||
self.config_colors()
|
self.config_colors()
|
||||||
|
|
||||||
self.rig = None
|
self.rig = None
|
||||||
|
self.connect_rig()
|
||||||
|
|
||||||
|
def connect_rig(self):
|
||||||
# Open a communication channel to the radio.
|
# Open a communication channel to the radio.
|
||||||
try:
|
try:
|
||||||
Hamlib.rig_set_debug(Hamlib.RIG_DEBUG_NONE)
|
Hamlib.rig_set_debug(Hamlib.RIG_DEBUG_NONE)
|
||||||
|
@ -96,6 +98,7 @@ class QRZLogger():
|
||||||
self.rig.open()
|
self.rig.open()
|
||||||
except:
|
except:
|
||||||
print("rig error")
|
print("rig error")
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
def print_banner(self):
|
def print_banner(self):
|
||||||
|
|
Loading…
Reference in New Issue