From d3c280fcf23a3735539d1fbf22efbaabd2fc039b Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Tue, 28 Nov 2017 13:10:24 -0500 Subject: [PATCH] Fix issue with maxspeed tape on PFD, #102 --- Nasal/FMGC.nas | 2 +- revision.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index 23ce7919..59dbc6ca 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -272,7 +272,7 @@ var masterFMGC = maketimer(0.2, func { flap = getprop("/controls/flight/flap-pos"); mmoIAS = (getprop("/instrumentation/airspeed-indicator/indicated-speed-kt") / getprop("/instrumentation/airspeed-indicator/indicated-mach")) * 0.82; if (flap == 0) { # 0 - if (mmoIAS > 350) { + if (mmoIAS < 350) { setprop("/FMGC/internal/maxspeed", mmoIAS); } else { setprop("/FMGC/internal/maxspeed", 350); diff --git a/revision.txt b/revision.txt index be87a613..f7f5dbcb 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4040 \ No newline at end of file +4041 \ No newline at end of file