diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index 82bdba9f..8ace2c3c 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -687,23 +687,18 @@ var canvas_pfd = { }), props.UpdateManager.FromHashList(["altimeterHpa","altimeterInhg","altimeterInhgMode"], 0.005, func(val) { if (val.altimeterInhgMode == 0) { - obj["QNH_setting"].setText(sprintf("%4.0f", val.altimeterHpa)); + obj["QNH_setting"].setText(sprintf("%4d", val.altimeterHpa)); } else { obj["QNH_setting"].setText(sprintf("%2.2f", val.altimeterInhg)); } }), props.UpdateManager.FromHashList(["altimeterStd","altitudeAutopilot"], 1, func(val) { if (val.altimeterStd == 1) { - if (val.altitudeAutopilot < 10000) { - obj["ALT_digit_UP"].setText(sprintf("%s", "FL " ~ val.altitudeAutopilot / 100)); - obj["ALT_digit_DN"].setText(sprintf("%s", "FL " ~ val.altitudeAutopilot / 100)); - } else { - obj["ALT_digit_UP"].setText(sprintf("%s", "FL " ~ val.altitudeAutopilot / 100)); - obj["ALT_digit_DN"].setText(sprintf("%s", "FL " ~ val.altitudeAutopilot / 100)); - } + obj["ALT_digit_UP"].setText(sprintf("FL%3d", val.altitudeAutopilot / 100)); + obj["ALT_digit_DN"].setText(sprintf("FL%3d", val.altitudeAutopilot / 100)); } else { - obj["ALT_digit_UP"].setText(sprintf("%5.0f", val.altitudeAutopilot)); - obj["ALT_digit_DN"].setText(sprintf("%5.0f", val.altitudeAutopilot)); + obj["ALT_digit_UP"].setText(sprintf("%5d", val.altitudeAutopilot)); + obj["ALT_digit_DN"].setText(sprintf("%5d", val.altitudeAutopilot)); } }), props.UpdateManager.FromHashValue("managedSpd", 1, func(val) { diff --git a/Nasal/Systems/electrical.nas b/Nasal/Systems/electrical.nas index 5d939410..0a73cf34 100644 --- a/Nasal/Systems/electrical.nas +++ b/Nasal/Systems/electrical.nas @@ -192,6 +192,9 @@ var ELEC = { me.Fail.tr1Fault.setBoolValue(0); me.Fail.tr2Fault.setBoolValue(0); }, + loop: func() { + # Empty, required for Emesary + }, }; setlistener("/systems/fmgc/power/power-1-on", func(val) {