LogAnalyzer: Fix handling of the -f format option (bin, log, auto)

Previously this option was ignored.
This commit is contained in:
Kevin Hester 2014-07-31 11:37:44 -07:00 committed by Craig Elder
parent 86baccffbd
commit 097a3b23e6

View File

@ -222,7 +222,7 @@ def main():
# load the log
startTime = time.time()
logdata = DataflashLog.DataflashLog(args.logfile.name, format='auto', ignoreBadlines=args.skip_bad) # read log
logdata = DataflashLog.DataflashLog(args.logfile.name, format=args.format, ignoreBadlines=args.skip_bad) # read log
endTime = time.time()
if args.profile:
print "Log file read time: %.2f seconds" % (endTime-startTime)