summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-12 18:26:41 -0800
committerGary E. Miller <gem@rellim.com>2018-11-12 18:26:41 -0800
commit3ec7e388c424fcb71efa392c3eb987aea9e38e02 (patch)
tree581dbf1a096024a5bf37d20f5fb5ce5f73ced73b
parente5591694d5aed30b0d67aea70ae97c553e096018 (diff)
downloadgpsd-3ec7e388c424fcb71efa392c3eb987aea9e38e02.tar.gz
gpsrinex: OPUS is picky about sample epoch.
-rw-r--r--gpsrinex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpsrinex.c b/gpsrinex.c
index 0ff863c7..a14c2249 100644
--- a/gpsrinex.c
+++ b/gpsrinex.c
@@ -549,10 +549,14 @@ static void print_raw(struct gps_data_t *gpsdata)
int nsat = 0;
int i;
- if ( (last_mtime.tv_sec + sample_interval) > gpsdata->raw.mtime.tv_sec ) {
+ if ((last_mtime.tv_sec + sample_interval) > gpsdata->raw.mtime.tv_sec) {
/* not time yet */
return;
}
+ /* opus insists (time % interval) = 0 */
+ if (0 != (last_mtime.tv_sec % sample_interval)) {
+ return;
+ }
/* go through list twice, first just to get a count */
for (i = 0; i < MAXCHANNELS; i++) {