]> git.mxchange.org Git - flightgear.git/commitdiff
#723: perpetual "GPS init complete" info messages.
authorThorstenB <brehmt@gmail.com>
Tue, 27 Mar 2012 19:24:54 +0000 (21:24 +0200)
committerThorstenB <brehmt@gmail.com>
Tue, 27 Mar 2012 19:24:54 +0000 (21:24 +0200)
Don't report "init complete" unless "init" is complete :).

src/Instrumentation/gps.cxx

index 8fff9cd65e506ec67589f725c3db932a200fd577..d9acf4f9fb3dfe540697460da5f37bff03a6b6d3 100644 (file)
@@ -480,8 +480,6 @@ GPS::update (double delta_time_sec)
   }
   
   if (_dataValid && (_mode == "init")) {
-    // allow a realistic delay in the future, here
-    SG_LOG(SG_INSTR, SG_INFO, "GPS initialisation complete");
         
     if (_route_active_node->getBoolValue()) {
       // GPS init with active route
@@ -498,6 +496,12 @@ GPS::update (double delta_time_sec)
         selectOBSMode();
       }
     }
+
+    if (_mode != "init")
+    {
+      // allow a realistic delay in the future, here
+      SG_LOG(SG_INSTR, SG_INFO, "GPS initialisation complete");
+    }
   } // of init mode check
   
   _last_pos = _indicated_pos;