Fixed problem introduced with phase check

Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
merspieler 2018-09-30 21:41:54 +02:00
parent bdd77e807f
commit db12fc29f2

View file

@ -400,24 +400,24 @@ var messages_right_memo = func {
} else { } else {
wing_aice.active = 0; wing_aice.active = 0;
} }
if (getprop("/instrumentation/comm[2]/frequencies/selected-mhz") != 0 and getprop("/FMGC/status/phase") == 1 or getprop("/FMGC/status/phase") == 2 or getprop("/FMGC/status/phase") == 6 or getprop("/FMGC/status/phase") == 9 or getprop("/FMGC/status/phase") == 10) { if (getprop("/instrumentation/comm[2]/frequencies/selected-mhz") != 0 and (getprop("/FMGC/status/phase") == 1 or getprop("/FMGC/status/phase") == 2 or getprop("/FMGC/status/phase") == 6 or getprop("/FMGC/status/phase") == 9 or getprop("/FMGC/status/phase") == 10)) {
vhf3_voice.active = 1; vhf3_voice.active = 1;
} else { } else {
vhf3_voice.active = 0; vhf3_voice.active = 0;
} }
if (getprop("/controls/autobrake/mode") == 1 and getprop("/FMGC/status/phase") == 7 or getprop("/FMGC/status/phase") == 8) { if (getprop("/controls/autobrake/mode") == 1 and (getprop("/FMGC/status/phase") == 7 or getprop("/FMGC/status/phase") == 8)) {
auto_brk_lo.active = 1; auto_brk_lo.active = 1;
} else { } else {
auto_brk_lo.active = 0; auto_brk_lo.active = 0;
} }
if (getprop("/controls/autobrake/mode") == 2 and getprop("/FMGC/status/phase") == 7 or getprop("/FMGC/status/phase") == 8) { if (getprop("/controls/autobrake/mode") == 2 and (getprop("/FMGC/status/phase") == 7 or getprop("/FMGC/status/phase") == 8)) {
auto_brk_med.active = 1; auto_brk_med.active = 1;
} else { } else {
auto_brk_med.active = 0; auto_brk_med.active = 0;
} }
if (getprop("/controls/autobrake/mode") == 3 and getprop("/FMGC/status/phase") == 7 or getprop("/FMGC/status/phase") == 8) { if (getprop("/controls/autobrake/mode") == 3 and (getprop("/FMGC/status/phase") == 7 or getprop("/FMGC/status/phase") == 8)) {
auto_brk_max.active = 1; auto_brk_max.active = 1;
} else { } else {
auto_brk_max.active = 0; auto_brk_max.active = 0;