From 9e0cbe1a90c9e36dd3b36f47fd20ac099cb8ccac Mon Sep 17 00:00:00 2001 From: merspieler Date: Mon, 24 Sep 2018 14:55:26 +0200 Subject: [PATCH] Round oil qt on crz page Signed-off-by: merspieler --- Models/Instruments/Lower-ECAM/Lower-ECAM.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas index a3c15383..2296c8e5 100644 --- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas +++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas @@ -972,8 +972,8 @@ var canvas_lowerECAM_crz = { }, update: func() { - me["Oil1"].setText(sprintf("%s", oil_qt1_actual.getValue())); - me["Oil2"].setText(sprintf("%s", oil_qt2_actual.getValue())); + me["Oil1"].setText(sprintf("%s", math.round(oil_qt1_actual.getValue(), 0.1))); + me["Oil2"].setText(sprintf("%s", math.round(oil_qt2_actual.getValue(), 0.1))); me.updateBottomStatus(); },