From e98e070294a71902f7b8c8566cffbec13faeef90 Mon Sep 17 00:00:00 2001 From: Tommy Olofsson <tommy.olofsson.90@gmail.com> Date: Thu, 5 Feb 2015 10:52:42 +0100 Subject: [PATCH] Made the csv tool not follow without -f. --- tools/lc2csv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/lc2csv.py b/tools/lc2csv.py index 5e6cc01..cc1387c 100755 --- a/tools/lc2csv.py +++ b/tools/lc2csv.py @@ -146,7 +146,10 @@ def main(main_args): current = {} type_ = {} file_ = open(args.elc) - reader = FollowingReader(file_, args.interval, args.timeout) + if args.follow: + reader = FollowingReader(file_, args.interval, args.timeout) + else: + reader = Reader(file_) d = labcomm.Decoder(reader) while True: try: -- GitLab