From: ThorstenB Date: Tue, 27 Mar 2012 19:24:54 +0000 (+0200) Subject: #723: perpetual "GPS init complete" info messages. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a8fe035b545aa9892f91dda32e6967780605fb15;p=flightgear.git #723: perpetual "GPS init complete" info messages. Don't report "init complete" unless "init" is complete :). --- diff --git a/src/Instrumentation/gps.cxx b/src/Instrumentation/gps.cxx index 8fff9cd65..d9acf4f9f 100644 --- a/src/Instrumentation/gps.cxx +++ b/src/Instrumentation/gps.cxx @@ -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;