mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 04:38:37 -05:00
Fixed save/restore of PttPort in WSJT.INI
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@202 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
b18438a6eb
commit
d594c24d41
13
wsjt.py
13
wsjt.py
@ -2016,12 +2016,15 @@ try:
|
|||||||
# elif key == 'RxDelay': options.RxDelay.set(value)
|
# elif key == 'RxDelay': options.RxDelay.set(value)
|
||||||
# elif key == 'TxDelay': options.TxDelay.set(value)
|
# elif key == 'TxDelay': options.TxDelay.set(value)
|
||||||
elif key == 'IDinterval': options.IDinterval.set(value)
|
elif key == 'IDinterval': options.IDinterval.set(value)
|
||||||
elif key == 'ComPort':
|
elif key == 'PttPort':
|
||||||
try:
|
try:
|
||||||
options.ComPort.set(value)
|
options.PttPort.set(value)
|
||||||
Audio.gcom2.nport=options.ComPort.get()
|
try:
|
||||||
|
Audio.gcom2.nport=int(options.PttPort.get())
|
||||||
|
except:
|
||||||
|
Audio.gcom2.nport=0
|
||||||
except:
|
except:
|
||||||
options.ComPort.set(0)
|
options.PttPort.set("/dev/cuad0")
|
||||||
Audio.gcom2.nport=0
|
Audio.gcom2.nport=0
|
||||||
Audio.gcom2.pttport=(options.PttPort.get()+' ')[:12]
|
Audio.gcom2.pttport=(options.PttPort.get()+' ')[:12]
|
||||||
elif key == 'Mileskm': options.mileskm.set(value)
|
elif key == 'Mileskm': options.mileskm.set(value)
|
||||||
@ -2132,7 +2135,7 @@ f.write("HisGrid " + t + "\n")
|
|||||||
#f.write("RxDelay " + str(options.RxDelay.get()) + "\n")
|
#f.write("RxDelay " + str(options.RxDelay.get()) + "\n")
|
||||||
#f.write("TxDelay " + str(options.TxDelay.get()) + "\n")
|
#f.write("TxDelay " + str(options.TxDelay.get()) + "\n")
|
||||||
f.write("IDinterval " + str(options.IDinterval.get()) + "\n")
|
f.write("IDinterval " + str(options.IDinterval.get()) + "\n")
|
||||||
f.write("ComPort " + str(options.PttPort.get()) + "\n")
|
f.write("PttPort " + str(options.PttPort.get()) + "\n")
|
||||||
f.write("Mileskm " + str(options.mileskm.get()) + "\n")
|
f.write("Mileskm " + str(options.mileskm.get()) + "\n")
|
||||||
f.write("MsgStyle " + str(options.ireport.get()) + "\n")
|
f.write("MsgStyle " + str(options.ireport.get()) + "\n")
|
||||||
f.write("Region " + str(options.iregion.get()) + "\n")
|
f.write("Region " + str(options.iregion.get()) + "\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user