diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-12 18:26:41 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-12 18:26:41 -0800 |
commit | 3ec7e388c424fcb71efa392c3eb987aea9e38e02 (patch) | |
tree | 581dbf1a096024a5bf37d20f5fb5ce5f73ced73b | |
parent | e5591694d5aed30b0d67aea70ae97c553e096018 (diff) | |
download | gpsd-3ec7e388c424fcb71efa392c3eb987aea9e38e02.tar.gz |
gpsrinex: OPUS is picky about sample epoch.
-rw-r--r-- | gpsrinex.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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++) { |