Skip to content

Commit

Permalink
fix MW / MC light reset
Browse files Browse the repository at this point in the history
  • Loading branch information
flogross89 committed Feb 3, 2025
1 parent 08b08ad commit 01e1b27
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,6 @@ export class FwsCore {
// Acquire discrete inputs at a higher frequency, buffer them until the next FWS cycle.
// T.O CONFIG button
if (SimVar.GetSimVarValue('L:A32NX_BTN_TOCONFIG', 'bool') && !this.fwsEcpFailed.get()) {
console.log('TO CONFIG');
this.toConfigInputBuffer.write(true, false);
}

Expand Down Expand Up @@ -4345,11 +4344,17 @@ export class FwsCore {
(a, b) => this.messagePriority(EcamMemos[a]) - this.messagePriority(EcamMemos[b]),
);

if (allFailureKeys.length === 0) {
// Reset master caution light if appropriate
if (allFailureKeys.filter((key) => this.ewdAbnormal[key].failure === 2).length === 0) {
this.requestMasterCautionFromFaults = false;
if (this.nonCancellableWarningCount === 0) {
this.requestMasterWarningFromFaults = false;
}
}

// Reset master warning light if appropriate
if (
allFailureKeys.filter((key) => this.ewdAbnormal[key].failure === 3).length === 0 &&
this.nonCancellableWarningCount === 0
) {
this.requestMasterWarningFromFaults = false;
}

this.masterCaution.set(
Expand Down

0 comments on commit 01e1b27

Please sign in to comment.