From a8fe035b545aa9892f91dda32e6967780605fb15 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Tue, 27 Mar 2012 21:24:54 +0200 Subject: [PATCH] #723: perpetual "GPS init complete" info messages. Don't report "init complete" unless "init" is complete :). --- src/Instrumentation/gps.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.5