From a53ab0076d93ec5989f71d854d27cb73571b80a2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 5 Dec 2009 13:44:39 -0500 Subject: [PATCH] Enhance readserial.py to note when resetting timer. --- tools/readserial.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/readserial.py b/tools/readserial.py index 4524ca8..fec2811 100755 --- a/tools/readserial.py +++ b/tools/readserial.py @@ -42,8 +42,10 @@ def readserial(infile, logfile, baudrate): starttime = curtime charcount = 0 isnewline = 1 - sys.stdout.write("\n") - logfile.write("\n") + msg = "\n\n======= %s (adjust=%d)\n" % ( + time.asctime(time.localtime(curtime)), ADJUSTBAUD) + sys.stdout.write(msg) + logfile.write(msg) lasttime = curtime # Translate unprintable chars; add timestamps -- 2.39.5