1
0
Fork 0

bool error + PROGAPPR

-fix bool on perfTOInput
- back to CLB from PROGAPPR
This commit is contained in:
Inuyaksa 2021-01-24 21:03:52 +01:00
parent d52b946b2b
commit 85b1763a92
3 changed files with 3 additions and 3 deletions

View file

@ -3781,7 +3781,7 @@ var canvas_MCDU_base = {
colortext[0] = "DONE";
}
colortext[1] = (fmgc.FMGCInternal.flightNumSet and page != "PROGDONE") ? fmgc.FMGCInternal.flightNum : ""; #CHECKME - codition useful?
colortext[1] = (fmgc.FMGCInternal.flightNumSet and page != "PROGDONE") ? fmgc.FMGCInternal.flightNum : ""; #CHECKME - condition useful?
me["Simple_Title"].setText(sprintf(" %-21s",colortext[0]));
me["Simple_Title2"].setText(sprintf("%12s %-11s","",colortext[1]));

View file

@ -241,7 +241,7 @@ var lskbutton = func(btn, i) {
progTOInput("L1",i); # same fn as TO
} else if (page == "PROGTO") {
progTOInput("L1",i);
} else if (page == "PROGCLB") {
} else if (page == "PROGCLB" or page == "PROGAPPR") { # APPR restore to CLB
progCLBInput("L1",i);
} else if (page == "PROGCRZ") {
progCRZInput("L1",i);

View file

@ -20,7 +20,7 @@ var perfTOCheckVSpeeds = func(i) {
}
var perfTOInput = func(key, i) {
var modifiable = (fmgc.FMGCInternal.phase == 0) ? true : false;
var modifiable = (fmgc.FMGCInternal.phase == 0) ? 1 : 0;
var scratchpad = mcdu_scratchpad.scratchpads[i].scratchpad;
if (key == "L1" and modifiable) {