Invalid egt (Why would that ever happen) no longer crashes lower ECAM
This commit is contained in:
parent
9be870a71e
commit
b9f25b3ca7
1 changed files with 4 additions and 4 deletions
|
@ -688,14 +688,14 @@ var canvas_lowerECAM_apu = {
|
|||
# APU N and EGT
|
||||
if (apu_master.getValue() == 1) {
|
||||
me["APUN"].setColor(0.0509,0.7529,0.2941);
|
||||
me["APUN"].setText(sprintf("%s", math.round(apu_rpm.getValue())));
|
||||
me["APUN"].setText(sprintf("%s", math.round(apu_rpm.getValue() or 0)));
|
||||
me["APUEGT"].setColor(0.0509,0.7529,0.2941);
|
||||
me["APUEGT"].setText(sprintf("%s", math.round(apu_egt.getValue(), 5)));
|
||||
me["APUEGT"].setText(sprintf("%s", math.round(apu_egt.getValue() or 0, 5)));
|
||||
} else if (apu_rpm.getValue() >= 1) {
|
||||
me["APUN"].setColor(0.0509,0.7529,0.2941);
|
||||
me["APUN"].setText(sprintf("%s", math.round(apu_rpm.getValue())));
|
||||
me["APUN"].setText(sprintf("%s", math.round(apu_rpm.getValue() or 0)));
|
||||
me["APUEGT"].setColor(0.0509,0.7529,0.2941);
|
||||
me["APUEGT"].setText(sprintf("%s", math.round(apu_egt.getValue(), 5)));
|
||||
me["APUEGT"].setText(sprintf("%s", math.round(apu_egt.getValue() or 0, 5)));
|
||||
} else {
|
||||
me["APUN"].setColor(0.7333,0.3803,0);
|
||||
me["APUN"].setText(sprintf("%s", "XX"));
|
||||
|
|
Loading…
Reference in a new issue