From 46b439571ead45b76c573d59df417ab2da2b4965 Mon Sep 17 00:00:00 2001 From: Josh Davidson Date: Mon, 23 Nov 2020 13:00:01 -0500 Subject: [PATCH] DU: Fix bug where PFD update the slow too much timesgit add .! --- Models/Instruments/PFD/PFD.nas | 12 ++++++++---- revision.txt | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index ee796f5f..08fa6c00 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -298,8 +298,10 @@ var canvas_PFD_base = { PFD_1_test.page.show(); } else { PFD_1.updateFast(); - PFD_1.update(); - updateL = 1; + if (!updateL) { # Update slow here once so that no flicker if timers don't perfectly align + updateL = 1; + PFD_1.update(); + } PFD_1_test.page.hide(); PFD_1.page.show(); } @@ -321,8 +323,10 @@ var canvas_PFD_base = { PFD_2_test.page.show(); } else { PFD_2.updateFast(); - PFD_2.update(); - updateR = 1; + if (!updateR) { # Update slow here once so that no flicker if timers don't perfectly align + updateR = 1; + PFD_2.update(); + } PFD_2_test.page.hide(); PFD_2.page.show(); } diff --git a/revision.txt b/revision.txt index aaa6442f..f70d7bba 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -41 \ No newline at end of file +42 \ No newline at end of file