Skip to content

Commit

Permalink
core: fix has_corruption logic
Browse files Browse the repository at this point in the history
Previously a file was incorrectly marked as corrupt if a message filter
was used and the log contained a filtered message.
  • Loading branch information
bkueng committed Dec 6, 2023
1 parent a2186fc commit 164a238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyulog/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,8 @@ def initialize(self, data, header, subscriptions, ulog_object) -> bool:
print(ulog_object._file_handle.tell())
print('Warning: no subscription found for message id {:}. Continuing,'
' but file is most likely corrupt'.format(msg_id))
has_corruption = True
self.timestamp = 0
has_corruption = True
return has_corruption

def _add_parameter_default(self, msg_param):
Expand Down

0 comments on commit 164a238

Please sign in to comment.