From 90ef8b431af9ef33390b4973a22a52768e1f5731 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Fri, 24 Apr 2020 17:13:10 +0100 Subject: [PATCH] Fix phases correctly this time --- Nasal/FMGC/FMGC.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/FMGC/FMGC.nas b/Nasal/FMGC/FMGC.nas index 3426e912..828842a5 100644 --- a/Nasal/FMGC/FMGC.nas +++ b/Nasal/FMGC/FMGC.nas @@ -809,7 +809,7 @@ var switchDatabase = func { # Landing to phase 7 setlistener("gear/gear[1]/wow", func() { - if (timer30secLanding.isRunning) { + if (getprop("gear/gear[1]/wow") == 0 and timer30secLanding.isRunning) { timer30secLanding.stop(); setprop("FMGC/internal/landing-time", -99); } @@ -850,7 +850,7 @@ setlistener("systems/navigation/adr/operating-3", func() { timer48gpsAlign3.stop(); } - if (getprop("gear/gear[1]/wow") == 1 and getprop("FMGC/internal/align3-time") == -99) { + if (getprop("FMGC/internal/align3-time") == -99) { timer48gpsAlign3.start(); setprop("FMGC/internal/align3-time", pts.Sim.Time.elapsedSec.getValue()); }