From 66cedaa0326ffd08972732e3b11f93f19ea8b4b9 Mon Sep 17 00:00:00 2001 From: Matthew Maring <56924612+hayden2000@users.noreply.github.com> Date: Mon, 20 Apr 2020 15:06:58 -0400 Subject: [PATCH] Fix on PFD display --- Models/Instruments/PFD/PFD.nas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index 93e68530..d4d6fdf8 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -782,7 +782,7 @@ var canvas_PFD_base = { if (gear_agl_cur <= 2500) { me["AI_agl"].show(); me["FMA_dh_box"].hide(); #not implemented - if (int(getprop("FMGC/internal/radio")) != -1) { + if (int(getprop("FMGC/internal/radio")) != 99999) { me["FMA_dh"].setText("RADIO"); me["FMA_dh"].show(); me["FMA_dhn"].setText(sprintf("%.0f", getprop("FMGC/internal/radio"))); @@ -795,7 +795,7 @@ var canvas_PFD_base = { } else { me["AI_agl"].setColor(0.0509,0.7529,0.2941); } - } else if (int(getprop("FMGC/internal/baro")) != -1) { + } else if (int(getprop("FMGC/internal/baro")) != 99999) { me["FMA_dh"].setText("BARO"); me["FMA_dh"].show(); me["FMA_dhn"].setText(sprintf("%.0f", getprop("FMGC/internal/baro"))); @@ -837,13 +837,13 @@ var canvas_PFD_base = { me["AI_agl"].hide(); me["FMA_nodh"].hide(); me["FMA_dh_box"].hide(); #not implemented - if (int(getprop("FMGC/internal/radio")) != -1) { + if (int(getprop("FMGC/internal/radio")) != 99999) { me["FMA_dh"].setText("RADIO"); me["FMA_dh"].show(); me["FMA_dhn"].setText(sprintf("%.0f", getprop("FMGC/internal/radio"))); me["FMA_dhn"].show(); me["FMA_nodh"].hide(); - } else if (int(getprop("FMGC/internal/baro")) != -1) { + } else if (int(getprop("FMGC/internal/baro")) != 99999) { me["FMA_dh"].setText("BARO"); me["FMA_dh"].show(); me["FMA_dhn"].setText(sprintf("%.0f", getprop("FMGC/internal/baro")));