From: curt Date: Tue, 2 Oct 2007 21:51:50 +0000 (+0000) Subject: Fix a typo introduced when supporting faster than integer gps clocks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a4e1daef5cb5b3239b8a00b32ef287a2b3d2e701;p=flightgear.git Fix a typo introduced when supporting faster than integer gps clocks. --- diff --git a/utils/GPSsmooth/gps.cxx b/utils/GPSsmooth/gps.cxx index 670353ed2..1a83e70c8 100644 --- a/utils/GPSsmooth/gps.cxx +++ b/utils/GPSsmooth/gps.cxx @@ -84,7 +84,7 @@ int GPSTrack::load( const string &file ) { } else if ( tokens[0] == "$GPGGA" && tokens.size() == 15 ) { double raw_time = atof(tokens[1].c_str()); GPSTime gps_time = GPSTime( raw_time ); - if ( fabs(gps_time.get_time() - p.gps_time.get_time()) < 0.0001 && + if ( fabs(gps_time.get_time() - p.gps_time.get_time()) > 0.0001 && (p.gps_time.get_time() > 1.0) ) { // new data cycle store last data before continuing data.push_back( p );