SCR-522C VHF radio - Tr lock fix, Better label for dialog.
This commit is contained in:
parent
5d1e99e35b
commit
8233eee3c4
2 changed files with 6 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
|||
</empty>
|
||||
|
||||
<text>
|
||||
<label>Radio Frequencies BC-602-A</label>
|
||||
<label>Radio Frequencies SCR-522C (US) or TR1133 (UK)</label>
|
||||
</text>
|
||||
|
||||
<empty>
|
||||
|
|
|
@ -101,6 +101,8 @@ var listenTr = func(t) {
|
|||
setprop("instrumentation/comm/ptt", 1);
|
||||
else if (tr == 1)
|
||||
setprop("instrumentation/comm/ptt", 0);
|
||||
if (tr == 0 and getprop("/instrumentation/comm/SCR-522C/tr-lock"))
|
||||
setprop("/instrumentation/comm/SCR-522C/tr", 1);
|
||||
}
|
||||
|
||||
# listener for the local TR lock.
|
||||
|
@ -110,10 +112,10 @@ var listenTrLock = func(i) {
|
|||
# print("tr_lock");
|
||||
|
||||
if (tr_lock == nil) tr_lock = false;
|
||||
if (tr_lock)
|
||||
setprop("/instrumentation/comm/SCR-522C/tr", 2);
|
||||
else if (getprop("/instrumentation/comm/SCR-522C/tr") == 2)
|
||||
if (tr_lock and getprop("/instrumentation/comm/SCR-522C/tr") == 0)
|
||||
setprop("/instrumentation/comm/SCR-522C/tr", 1);
|
||||
# else if (getprop("/instrumentation/comm/SCR-522C/tr") == 2)
|
||||
# setprop("/instrumentation/comm/SCR-522C/tr", 1);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue