Browse Source

better verbose display

tth 1 year ago
parent
commit
faca30264b
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      serial/t.c

+ 7
- 7
serial/t.c View File

@@ -35,6 +35,13 @@ for (count=0; count<iters; count++) {
35 35
 					count, iters, foo); */
36 36
 		fprintf(stderr, "%s\n", ligne);
37 37
 		}
38
+	//
39
+	if (verbosity > 1)
40
+		{
41
+		p_tms = localtime(&temps);
42
+		(void)strftime(ligne, 19, "%H:%M:%S", p_tms);
43
+		fprintf(stderr, "%6d   %s\n", count, ligne);
44
+		}
38 45
 	foo = parse4values(ligne, 'T', datas);
39 46
 	// 
40 47
 	if (foo >= 0) {
@@ -47,13 +54,6 @@ for (count=0; count<iters; count++) {
47 54
 	else	{
48 55
 		fprintf(stderr, "%s: parse -> %d\n", __func__, foo);
49 56
 		}
50
-	//
51
-	if (verbosity > 1)
52
-		{
53
-		p_tms = localtime(&temps);
54
-		(void)strftime(ligne, 19, "%H:%M:%S", p_tms);
55
-		fprintf(stderr, "\t%s\n", ligne);
56
-		}
57 57
 	}
58 58
 return 0;
59 59
 }

Loading…
Cancel
Save