1
0
Fork 0

Correct logic of altitude alerter

This commit is contained in:
legoboyvdlp R 2020-03-18 16:02:43 +00:00
parent 4a9e4fc56d
commit d535875d68

View file

@ -773,7 +773,7 @@ var messages_priority_3 = func {
FWC.Monostable.altAlert2.setValue(0);
}
if ((fcu.ap1.getBoolValue() or fcu.ap2.getBoolValue()) and FWC.Monostable.altAlert2.getValue()) {
if ((!fcu.ap1.getBoolValue() and !fcu.ap2.getBoolValue()) and FWC.Monostable.altAlert2.getValue()) {
FWC.Monostable.altAlert1.setValue(1);
} else {
FWC.Monostable.altAlert1.setValue(0);