From 3ec7e388c424fcb71efa392c3eb987aea9e38e02 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 12 Nov 2018 18:26:41 -0800 Subject: gpsrinex: OPUS is picky about sample epoch. --- gpsrinex.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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++) { -- cgit v1.2.1