1
0
Fork 0

Fix logic issue when clearing a GPWS fault.

This commit is contained in:
ThorstenB 2018-02-01 22:39:05 +01:00
parent f37715f334
commit beecf005ce

View file

@ -962,7 +962,7 @@ MK_VIII::FaultHandler::unset_fault (Fault fault)
{
if (faults & (1<<fault))
{
faults |= 1<<fault;
faults &= ~(1<<fault);
if (! has_faults(INOP_GPWS))
mk_doutput(gpws_inop) = false;
if (! has_faults(INOP_TAD))
@ -1380,7 +1380,6 @@ MK_VIII::IOHandler::handle_input_fault (bool test, FaultHandler::Fault fault)
{
if (test)
{
if (! (mk->fault_handler.faults & (1<<fault)))
mk->fault_handler.set_fault(fault);
}
else