diff --git a/rs41/rs41stdin.c b/rs41/rs41stdin.c index 1714e78..dd918ff 100644 --- a/rs41/rs41stdin.c +++ b/rs41/rs41stdin.c @@ -492,10 +492,10 @@ int get_Cal() { byte = xorbyte(pos_CalData); calfr = byte; - fprintf(stderr, " 0x%02x:", calfr); + fprintf(stderr, " 0x%02x: ", calfr); for (i = 0; i < 16; i++) { byte = xorbyte(pos_CalData+1+i); - fprintf(stderr, " %02x", byte); + fprintf(stderr, "%02x ", byte); } if (option_verbose == 2) { @@ -514,8 +514,6 @@ int get_Cal() { } } - fprintf(stderr, "\n"); - return 0; } @@ -544,10 +542,13 @@ int print_position() { fprintf(stdout, " lat: %.5f ", gpx.lat); fprintf(stdout, " lon: %.5f ", gpx.lon); fprintf(stdout, " h: %.2f ", gpx.h); + fprintf(stdout, "\n"); // fflush(stdout); - if (option_verbose) get_Cal(); - - fprintf(stdout, "\n"); + if (option_verbose) { + fprintf(stderr, "[%5d] ", gpx.frnr); + get_Cal(); + fprintf(stderr, "\n"); + } } return err;