Skip to content

Commit 5933c97

Browse files
author
Tim Bird
committed
Add line feed to instantpat output line
1 parent f0487bb commit 5933c97

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

grabserial

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
# * buffer output chars??
1414
#
1515
# CHANGELOG:
16+
# 2015.03.10 - Version 1.7.1 - add line feed to instantpat result line
17+
# 2014.09.28 - Version 1.7.0 - add option for force reset for USB serial
18+
# contributed by John Mehaffey <mehaf@gedanken.com>
1619
# 2014.01.07 - Version 1.6.0 - add option for exiting based on a
1720
# mid-line pattern (quitpat). Simeon Miteff <simeon.miteff@gmail.com>
1821
# 2013.12.19 - Version 1.5.2 - verify Windows ports w/ serial.tools.list_ports
@@ -30,7 +33,7 @@
3033

3134
MAJOR_VERSION=1
3235
MINOR_VERSION=7
33-
REVISION=0
36+
REVISION=1
3437

3538
import os, sys
3639
import getopt
@@ -320,7 +323,7 @@ def main():
320323
sd.close()
321324
if instanttime:
322325
instanttime_str = '%4.6f' % (instanttime-basetime)
323-
sys.stdout.write('\nThe instantpat: "' + instantpat + '", was matched at ' + instanttime_str)
326+
sys.stdout.write('\nThe instantpat: "' + instantpat + '", was matched at ' + instanttime_str+'\n')
324327
sys.stdout.flush()
325328

326329
main()

0 commit comments

Comments
 (0)