Skip to content

Commit

Permalink
Merge pull request #536 from ourairquality/rnx2rtkp-trace
Browse files Browse the repository at this point in the history
rnx2rtkp: initialize tracing
  • Loading branch information
rtklibexplorer authored Dec 6, 2024
2 parents afb0b61 + 39c794a commit 2140885
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/consapp/rnx2rtkp/rnx2rtkp.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ int main(int argc, char **argv)
prcopt.glomodear=GLO_ARMODE_ON;
solopt.timef=0;
sprintf(solopt.prog ,"%s ver.%s %s",PROGNAME,VER_RTKLIB,PATCH_LEVEL);
sprintf(filopt.trace,"%s.trace",PROGNAME);

/* load options from configuration file */
for (i=1;i<argc;i++) {
Expand Down Expand Up @@ -195,6 +194,12 @@ int main(int argc, char **argv)
showmsg("error : no input file");
return EXIT_FAILURE;
}
if (solopt.trace > 0) {
if (*filopt.trace == '\0')
sprintf(filopt.trace, "%s.trace", PROGNAME);
traceopen(filopt.trace);
tracelevel(solopt.trace);
}
ret=postpos(ts,te,tint,0.0,&prcopt,&solopt,&filopt,infile,n,outfile,"","");

if (!ret) fprintf(stderr,"%40s\r","");
Expand Down

0 comments on commit 2140885

Please sign in to comment.