From 622e1ac4aee93aadbd0ee88cff87bbe521d37f1f Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Fri, 5 Feb 2021 11:17:35 +0000 Subject: [PATCH] Bugfix startup from cold and dark --- Nasal/ECAM/ECAM-logic.nas | 6 +++++- revision.txt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Nasal/ECAM/ECAM-logic.nas b/Nasal/ECAM/ECAM-logic.nas index 15c6177e..2a534c32 100644 --- a/Nasal/ECAM/ECAM-logic.nas +++ b/Nasal/ECAM/ECAM-logic.nas @@ -1614,7 +1614,11 @@ var messages_priority_2 = func { } # SAT ABOVE FLEX TEMP - _SATval = dmc.DMController.DMCs[1].outputs[4].getValue(); + if (dmc.DMController.DMCs[1] != nil and dmc.DMController.DMCs[1].outputs[4] != nil) { + _SATval = dmc.DMController.DMCs[1].outputs[4].getValue() or nil; + } else { + _SATval = nil; + } if (satAbvFlexTemp.clearFlag == 0 and phaseVar2 == 2 and fadec.Thrust.limFlex.getValue() and _SATval != nil and _SATval > fmgc.FMGCNodes.flexTemp.getValue() and !warningNodes.Logic.thrLeversNotSet.getValue()) { satAbvFlexTemp.active = 1; diff --git a/revision.txt b/revision.txt index abc4eff6..801f1801 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -46 \ No newline at end of file +47 \ No newline at end of file