fixed a DME HOLD error .... note to self: dont use find and replace all !
This commit is contained in:
parent
89532b0909
commit
fe7d5a0462
1 changed files with 2 additions and 2 deletions
|
@ -301,10 +301,10 @@ setlistener("/instrumentation/kns-80/dme-hold", func {
|
|||
if(FDM_ON == 0){return;}
|
||||
if(cmdarg().getBoolValue()){
|
||||
props.globals.getNode("instrumentation/dme/frequencies/selected-mhz").setDoubleValue(NAV1.getValue());
|
||||
props.globals.getNode("instrumentation/dme/frequencies/source").setDoubleValue("/instrumentation/dme/frequencies/selected-mhz");
|
||||
props.globals.getNode("instrumentation/dme/frequencies/source").setValue("/instrumentation/dme/frequencies/selected-mhz");
|
||||
}else{
|
||||
props.globals.getNode("instrumentation/dme/frequencies/selected-mhz").setDoubleValue("");
|
||||
props.globals.getNode("instrumentation/dme/frequencies/source").setDoubleValue("/instrumentation/nav[0]/frequencies/selected-mhz");
|
||||
props.globals.getNode("instrumentation/dme/frequencies/source").setValue("/instrumentation/nav[0]/frequencies/selected-mhz");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue