Browse Source

more verbose display (timestamp)

master
tth 3 years ago
parent
commit
2024a1b342
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      serial/t.c

+ 8
- 1
serial/t.c View File

@ -25,6 +25,7 @@ int count, foo;
long temps;
char ligne[200];
float datas[4];
struct tm *p_tms;
for (count=0; count<iters; count++) {
foo = getline_to(sfd, ligne, 100, 0);
@ -46,7 +47,13 @@ for (count=0; count<iters; count++) {
else {
fprintf(stderr, "%s: parse -> %d\n", __func__, foo);
}
if (verbosity > 1) fprintf(stderr, "\n");
//
if (verbosity > 1)
{
p_tms = localtime(&temps);
(void)strftime(ligne, 19, "%H:%M:%S", p_tms);
fprintf(stderr, "\t%s\n", ligne);
}
}
return 0;
}


Loading…
Cancel
Save