Changeset 6469 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Dec 28, 2014, 10:37:18 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r6468 r6469  
    396396
    397397  if (_lastTime.valid()) {
    398     while (_lastTime < currentTime - 86400.0/2) {
    399       _lastTime = _lastTime + 86400.0/2;
    400     }
    401     while (_lastTime > currentTime + 86400.0/2) {
    402       _lastTime = _lastTime - 86400.0/2;
    403     }
    404   }
    405 }
     398    double maxDiff = 12 * 3600.0;
     399    while (_lastTime < currentTime - maxDiff) {
     400      _lastTime = _lastTime + maxDiff;
     401    }
     402    while (_lastTime > currentTime + maxDiff) {
     403      _lastTime = _lastTime - maxDiff;
     404    }
     405  }
     406}
Note: See TracChangeset for help on using the changeset viewer.