Skip to content

Commit

Permalink
Add line feed to instantpat output line
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Bird committed Mar 10, 2015
1 parent f0487bb commit 5933c97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions grabserial
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# * buffer output chars??
#
# CHANGELOG:
# 2015.03.10 - Version 1.7.1 - add line feed to instantpat result line
# 2014.09.28 - Version 1.7.0 - add option for force reset for USB serial
# contributed by John Mehaffey <[email protected]>
# 2014.01.07 - Version 1.6.0 - add option for exiting based on a
# mid-line pattern (quitpat). Simeon Miteff <[email protected]>
# 2013.12.19 - Version 1.5.2 - verify Windows ports w/ serial.tools.list_ports
Expand All @@ -30,7 +33,7 @@

MAJOR_VERSION=1
MINOR_VERSION=7
REVISION=0
REVISION=1

import os, sys
import getopt
Expand Down Expand Up @@ -320,7 +323,7 @@ def main():
sd.close()
if instanttime:
instanttime_str = '%4.6f' % (instanttime-basetime)
sys.stdout.write('\nThe instantpat: "' + instantpat + '", was matched at ' + instanttime_str)
sys.stdout.write('\nThe instantpat: "' + instantpat + '", was matched at ' + instanttime_str+'\n')
sys.stdout.flush()

main()

0 comments on commit 5933c97

Please sign in to comment.