From 164a23860f2074068506049b47ecaa0e6a48f30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 6 Dec 2023 19:43:24 +0100 Subject: [PATCH] core: fix has_corruption logic Previously a file was incorrectly marked as corrupt if a message filter was used and the log contained a filtered message. --- pyulog/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyulog/core.py b/pyulog/core.py index 833af71..0b86630 100644 --- a/pyulog/core.py +++ b/pyulog/core.py @@ -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):