We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a0e62f commit a71152aCopy full SHA for a71152a
src/rtkcmn.c
@@ -2031,7 +2031,7 @@ extern int adjgpsweek(int week)
2031
int w;
2032
(void)time2gpst(utc2gpst(timeget()),&w);
2033
if (w<1560) w=1560; /* use 2009/12/1 if time is earlier than 2009/12/1 */
2034
- return week+(w-week+512)/1024*1024;
+ return week+(w-week+511)/1024*1024;
2035
}
2036
/* get tick time ---------------------------------------------------------------
2037
* get current tick in ms
0 commit comments