Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rtkcmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ extern int adjgpsweek(int week)
int w;
(void)time2gpst(utc2gpst(timeget()),&w);
if (w<1560) w=1560; /* use 2009/12/1 if time is earlier than 2009/12/1 */
return week+(w-week+1)/1024*1024;
return week+(w-week+511)/1024*1024;
}
/* get tick time ---------------------------------------------------------------
* get current tick in ms
Expand Down