Showing 1 changed files with 6 additions and 3 deletions
+6 -3
Nasal/display.nas
... ...
@@ -354,6 +354,9 @@ var displayClass = {
354 354
             me.timers.updateBARO   = maketimer(0,   me, me.updateBARO   ); me.timers.updateBARO.singleShot=1;
355 355
             me.timers.updateOMI    = maketimer(1.0, me, me.updateOMI    );
356 356
             me.timers.timerTrigger = maketimer(1.0, me, me.timerTrigger );
357
+            me.timers.updateAOA    = maketimer(0.1, me, me.updateAOA    );    me.timers.updateAOA.singleShot=1;
358
+            me.timers.updateCDI    = maketimer(0.3, me, me.updateCDI    );    me.timers.updateCDI.singleShot=1;
359
+            me.timers.updateWindData = maketimer(0.5, me, me.updateWindData); me.timers.updateWindData.singleShot=1;
357 360
 
358 361
             me.screen.show();
359 362
             me.device.buttons.MENU = me.device.buttons.GlobalParams;
... ...
@@ -1017,7 +1020,7 @@ var displayClass = {
1017 1020
             scale = (abs(scale) > 1.2) ? 1.2 : scale;
1018 1021
             me.screenElements[source ~ '-CDI']
1019 1022
                 .setTranslation(65 * scale, 0);
1020
-            settimer(func me.updateCDI(), 0.3);
1023
+            me.timers.updateCDI.start();
1021 1024
         }
1022 1025
     },
1023 1026
 #}}}
... ...
@@ -1242,7 +1245,7 @@ var displayClass = {
1242 1245
                 me.screenElements[e].hide();
1243 1246
             me.screenElements['WindData-NODATA'].show();
1244 1247
         }
1245
-        settimer(func me.updateWindData(), 0.5);
1248
+        me.timers.updateWindData.start();
1246 1249
     },
1247 1250
     _winddata_optn : 0,
1248 1251
 #}}}
... ...
@@ -1269,7 +1272,7 @@ var displayClass = {
1269 1272
             .setColorFill(color);
1270 1273
         me.screenElements['AOA-text']
1271 1274
             .setColor(color);
1272
-        settimer(func me.updateAOA(), 0.1);
1275
+        me.timers.updateAOA.start();
1273 1276
     },
1274 1277
 # }}}
1275 1278