Showing 1 changed files with 2 additions and 2 deletions
+2 -2
Nasal/core.nas
... ...
@@ -225,14 +225,14 @@ var powerOn = func {
225 225
     foreach (var freq; keys(data.timers))
226 226
         data.timers[freq].start();
227 227
 
228
-    autopilot = APClass.new();
229
-
230 228
     foreach (var name; keys(flightdeck))
231 229
         if (zkv.getNode(name) != nil)
232 230
 #            thread.newthread(func {
233 231
                 flightdeck[name] = deviceClass.new(name);
234 232
 #            });
235 233
 
234
+    autopilot = APClass.new();
235
+
236 236
     if (! contains(data.timers, 'listeners')) {
237 237
         data.timers.listeners = maketimer(5, setListeners);
238 238
         data.timers.listeners.singleShot = 1;