LogAnalyzer: if no GPS, try GPS2

This commit is contained in:
Peter Barker 2015-07-10 12:32:21 +10:00 committed by Andrew Tridgell
parent ce558b2b98
commit 1dba943a10
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@ class TestSuite(object):
def run(self, logdata, verbose):
'''run all registered tests in a single call, gathering execution timing info'''
self.logdata = logdata
if 'GPS' not in self.logdata.channels and 'GPS2' in self.logdata.channels:
# *cough*
self.logdata.channels['GPS'] = self.logdata.channels['GPS2']
self.logfile = logdata.filename
for test in self.tests:
# run each test in turn, gathering timing info