Fix issue #49
This commit is contained in:
parent
2b47000756
commit
96174fb544
10
gpssim.c
10
gpssim.c
@ -938,6 +938,11 @@ int readRinexNavAll(ephem_t eph[][MAX_SAT], ionoutc_t *ionoutc, const char *fnam
|
||||
if (NULL==fgets(str, MAX_CHAR, fp))
|
||||
break;
|
||||
|
||||
// PRN
|
||||
strncpy(tmp, str, 2);
|
||||
tmp[2] = 0;
|
||||
sv = atoi(tmp)-1;
|
||||
|
||||
// EPOCH
|
||||
strncpy(tmp, str+3, 2);
|
||||
tmp[2] = 0;
|
||||
@ -983,11 +988,6 @@ int readRinexNavAll(ephem_t eph[][MAX_SAT], ionoutc_t *ionoutc, const char *fnam
|
||||
// Date and time
|
||||
eph[ieph][sv].t = t;
|
||||
|
||||
// PRN
|
||||
strncpy(tmp, str, 2);
|
||||
tmp[2] = 0;
|
||||
sv = atoi(tmp)-1;
|
||||
|
||||
// SV CLK
|
||||
eph[ieph][sv].toc = g;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user