System: Fix data missing on RMP standby display
This commit is contained in:
parent
a3e33ebef9
commit
e742a02714
2 changed files with 13 additions and 6 deletions
|
@ -161,21 +161,29 @@ var update_stby_vhf = func(rmp_no, vhf) {
|
|||
var stby = sprintf("%3.3f", stby_rmp1_vhf1.getValue());
|
||||
} else if (vhf == 2) {
|
||||
var stby = sprintf("%3.3f", stby_rmp1_vhf2.getValue());
|
||||
} else {
|
||||
} else if (vhf == 3) {
|
||||
var stby = sprintf("%3.3f", stby_rmp1_vhf3.getValue());
|
||||
}
|
||||
|
||||
stby_display_rmp1.setValue(stby);
|
||||
if (stby == 0) {
|
||||
stby_display_rmp1.setValue("data");
|
||||
} else {
|
||||
stby_display_rmp1.setValue(stby);
|
||||
}
|
||||
} else {
|
||||
if (vhf == 1) {
|
||||
var stby = sprintf("%3.3f", stby_rmp2_vhf1.getValue());
|
||||
} else if (vhf == 2) {
|
||||
var stby = sprintf("%3.3f", stby_rmp2_vhf2.getValue());
|
||||
} else {
|
||||
} else if (vhf == 3) {
|
||||
var stby = sprintf("%3.3f", stby_rmp2_vhf3.getValue());
|
||||
}
|
||||
|
||||
stby_display_rmp2.setValue(stby);
|
||||
if (stby == 0) {
|
||||
stby_display_rmp2.setValue("data");
|
||||
} else {
|
||||
stby_display_rmp2.setValue(stby);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -229,7 +237,6 @@ var transfer = func(rmp_no) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
setlistener("/systems/radio/rmp[0]/vhf1-standby", func {
|
||||
update_stby_vhf(0, 1);
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
4688
|
||||
4689
|
Reference in a new issue