Skip to content

Commit 2d59920

Browse files
Merge pull request tomojitakasu#537 from ourairquality/rinex-clk304
rinex clk 3.04: correct the offset to the header sat system
2 parents 2140885 + ebf532a commit 2d59920

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rinex.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,11 @@ static int readrnxh(FILE *fp, double *ver, char *type, int *sys, int *tsys,
676676
}
677677
else if (strstr(label,"RINEX VERSION / TYPE")) {
678678
*ver=str2num(buff,0,9);
679-
/* format change for clock files >=3.04 */
679+
// Format change for clock files >=3.04
680680
*type=(*ver<3.04||flag==0)?*(buff+20):*(buff+21);
681681

682-
/* satellite system */
683-
switch (*(buff+40)) {
682+
// Satellite system
683+
switch ((*ver<3.04||flag==0)?*(buff+40):*(buff+42)) {
684684
case ' ':
685685
case 'G': *sys=SYS_GPS; *tsys=TSYS_GPS; break;
686686
case 'R': *sys=SYS_GLO; *tsys=TSYS_UTC; break;

0 commit comments

Comments
 (0)