Skip to content

Commit

Permalink
DFReader: add rewinds in _find_time_base
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgubler committed Feb 23, 2014
1 parent 2db277e commit 11592d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymavlink/DFReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@ def _find_time_base(self):

if 'GPSTime' in gps1._fieldnames:
self._find_time_base_px4(gps1)
self._rewind()
return

if 'T' in gps1._fieldnames:
# it is a new style flash log with full timestamps
self._find_time_base_new(gps1)
self._rewind()
return

counts1 = self.counts.copy()
Expand Down

0 comments on commit 11592d1

Please sign in to comment.