From 4a3ba49a1243cedbeb8562965177578fdbb245c6 Mon Sep 17 00:00:00 2001 From: Alex McBean Date: Thu, 15 Oct 2020 22:25:21 +0100 Subject: [PATCH] Reversion of Bug Fix (#1361) - Should fix the issue with entering ZFW/ZFWCG (cherry picked from commit 6129370214180e00de7f6aab71a9b478c757bdeb) --- .../Airliners/A320_Neo/CDU/A320_Neo_CDU_InitPage.js | 2 +- .../Airliners/A320_Neo/FMC/A32NX_FMCMainDisplay.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/A32NX/html_ui/Pages/VCockpit/Instruments/Airliners/A320_Neo/CDU/A320_Neo_CDU_InitPage.js b/A32NX/html_ui/Pages/VCockpit/Instruments/Airliners/A320_Neo/CDU/A320_Neo_CDU_InitPage.js index f55104f7bd1..1f1cd779759 100644 --- a/A32NX/html_ui/Pages/VCockpit/Instruments/Airliners/A320_Neo/CDU/A320_Neo_CDU_InitPage.js +++ b/A32NX/html_ui/Pages/VCockpit/Instruments/Airliners/A320_Neo/CDU/A320_Neo_CDU_InitPage.js @@ -208,7 +208,7 @@ class CDUInitPage { if (value === "") { mcdu.inOut = (isFinite(mcdu.zeroFuelWeight) ? mcdu.zeroFuelWeight.toFixed(1) : "") + - "|" + + "/" + (isFinite(mcdu.zeroFuelWeightMassCenter) ? mcdu.zeroFuelWeightMassCenter.toFixed(1) : ""); } else if (await mcdu.trySetZeroFuelWeightZFWCG(value)) { CDUInitPage.updateTowIfNeeded(mcdu); diff --git a/A32NX/html_ui/Pages/VCockpit/Instruments/Airliners/A320_Neo/FMC/A32NX_FMCMainDisplay.js b/A32NX/html_ui/Pages/VCockpit/Instruments/Airliners/A320_Neo/FMC/A32NX_FMCMainDisplay.js index 62e7f6f607d..fb8a36373b5 100644 --- a/A32NX/html_ui/Pages/VCockpit/Instruments/Airliners/A320_Neo/FMC/A32NX_FMCMainDisplay.js +++ b/A32NX/html_ui/Pages/VCockpit/Instruments/Airliners/A320_Neo/FMC/A32NX_FMCMainDisplay.js @@ -1232,8 +1232,8 @@ class FMCMainDisplay extends BaseAirliners { let zfw = 0; let zfwcg = 0; if (s) { - if (s.includes("")) { - const sSplit = s.split("|"); + if (s.includes("/")) { + const sSplit = s.split("/"); zfw = parseFloat(sSplit[0]); zfwcg = parseFloat(sSplit[1]); } else {