Skip to content

Commit 1969e71

Browse files
Merge pull request tomojitakasu#579 from ourairquality/rtksvr-decodefile
rtksvr decodefile: copy nemax and ncmax
2 parents 630ee95 + b99738f commit 1969e71

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/rtksvr.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ static void decodefile(rtksvr_t *svr, int index)
427427
rtksvrlock(svr);
428428

429429
if (svr->nav.peph) free(svr->nav.peph);
430-
svr->nav.ne=svr->nav.nemax=nav.ne;
430+
svr->nav.ne = nav.ne;
431+
svr->nav.nemax = nav.nemax;
431432
svr->nav.peph=nav.peph;
432433
svr->ftime[index]=utc2gpst(timeget());
433434
strcpy(svr->files[index],file);
@@ -445,7 +446,8 @@ static void decodefile(rtksvr_t *svr, int index)
445446
rtksvrlock(svr);
446447

447448
if (svr->nav.pclk) free(svr->nav.pclk);
448-
svr->nav.nc=svr->nav.ncmax=nav.nc;
449+
svr->nav.nc = nav.nc;
450+
svr->nav.ncmax = nav.ncmax;
449451
svr->nav.pclk=nav.pclk;
450452
svr->ftime[index]=utc2gpst(timeget());
451453
strcpy(svr->files[index],file);

0 commit comments

Comments
 (0)