Removed quotes from SDRPlay Antenna switch and added Auto option

This commit is contained in:
Mark J. Fine 2022-12-17 16:35:45 -05:00
parent b945e3611a
commit ec61b85afc
2 changed files with 4 additions and 2 deletions

View File

@ -638,8 +638,9 @@ class NRSC5_DUI(object):
# set SDRPlay antenna if not blank
#if (self.cbSDRPlay.get_active()) and (self.cbxSDRPlayAnt.get_active_text() != ""):
if (useSDRPlay) and (self.cbxSDRPlayAnt.get_active_text() != ""):
self.nrsc5Args.append("-A")
self.nrsc5Args.append("\"Antenna "+self.cbxSDRPlayAnt.get_active_text()+"\"")
if self.cbxSDRPlayAnt.get_active_text() != "Auto":
self.nrsc5Args.append("-A")
self.nrsc5Args.append("Antenna "+self.cbxSDRPlayAnt.get_active_text())
# set frequency and stream
self.nrsc5Args.append(str(self.spinFreq.get_value()))

View File

@ -1711,6 +1711,7 @@
<property name="has_entry">False</property>
<property name="active">0</property>
<items>
<item translatable="yes" id="antAuto">Auto</item>
<item translatable="yes" id="antA">A</item>
<item translatable="yes" id="antB">B</item>
<item translatable="yes" id="antC">C</item>