Skip to content

Commit

Permalink
add close method to binary reader
Browse files Browse the repository at this point in the history
add close method that closes the open file DFReader_binary
  • Loading branch information
stasostyk authored and tridge committed Jul 22, 2023
1 parent c4eb88a commit 9613d7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DFReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,11 @@ def flightmode_list(self):

self._rewind()
return self._flightmodes

def close(self):
'''close the log file'''
self.filehandle.close()


class DFReader_binary(DFReader):
'''parse a binary dataflash file'''
Expand Down

0 comments on commit 9613d7a

Please sign in to comment.