From a2186fc588169cf5e89b1f07b47e02cd7b0f66d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 29 Nov 2023 11:21:41 +0100 Subject: [PATCH] info: report corrupted file --- pyulog/info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyulog/info.py b/pyulog/info.py index 083e37e..4796717 100644 --- a/pyulog/info.py +++ b/pyulog/info.py @@ -14,6 +14,10 @@ def show_info(ulog, verbose): """Show general information from an ULog""" + + if ulog.file_corruption: + print("Warning: file has data corruption(s)") + m1, s1 = divmod(int(ulog.start_timestamp/1e6), 60) h1, m1 = divmod(m1, 60) m2, s2 = divmod(int((ulog.last_timestamp - ulog.start_timestamp)/1e6), 60)