From bf8b4778e12cc8b8cc48576045d3fba3d8e1c013 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Fri, 31 Jul 2020 14:08:53 +0800 Subject: [PATCH] Smart instruments: bug fix --- Nasal/SmartInstruments.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/SmartInstruments.nas b/Nasal/SmartInstruments.nas index 2785a11..2996822 100644 --- a/Nasal/SmartInstruments.nas +++ b/Nasal/SmartInstruments.nas @@ -139,7 +139,7 @@ var instrumentUpdate = func(){ tempDisplay.updateText(sprintf("%0.1f", tempC)~" °C"); var hour = props.getNode("/", 1).getValue("sim/time/real/hour"); var minute = props.getNode("/", 1).getValue("sim/time/real/minute"); - if(minute == 0 or minute == "0") minute = "00"; + if(minute < 10) minute = "0"~minute; timeDisplay.updateText(hour~":"~minute); #runtimeTextAdjust(timeDisplay); }