From fc6b7453850aa57c0726b2a6da801692bd502a43 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Tue, 20 Nov 2018 15:26:53 -0500 Subject: [PATCH] DU: Fix missing DU Quality code in LECAM --- Models/Instruments/Lower-ECAM/Lower-ECAM.nas | 7 +++++++ revision.txt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas index 7d4475b0..776ab9db 100644 --- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas +++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas @@ -3114,8 +3114,15 @@ setlistener("sim/signals/fdm-initialized", func { lowerECAM_test = canvas_lowerECAM_test.new(group_test, "Aircraft/IDG-A32X/Models/Instruments/Common/res/du-test.svg"); lowerECAM_update.start(); + if (getprop("/systems/acconfig/options/lecam-rate") > 1) { + l_rateApply(); + } }); +var l_rateApply = func { + lowerECAM_update.restart(0.05 * getprop("/systems/acconfig/options/lecam-rate")); +} + var lowerECAM_update = maketimer(0.05, func { canvas_lowerECAM_base.update(); }); diff --git a/revision.txt b/revision.txt index 9b08816d..ecd2cbdf 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4703 \ No newline at end of file +4704 \ No newline at end of file