summaryrefslogtreecommitdiff
path: root/gpsrinex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsrinex.c')
-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++) {