From 54512f2f43c6d3c4ba737725070b73b844c5ead5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 9 Nov 2020 09:09:56 +0100 Subject: DataProcessor: Warn for positive and negative offset errors --- lib/lennart/DataProcessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lennart/DataProcessor.py b/lib/lennart/DataProcessor.py index b46315a..8341b9c 100644 --- a/lib/lennart/DataProcessor.py +++ b/lib/lennart/DataProcessor.py @@ -111,7 +111,7 @@ class DataProcessor: ) logger.debug(f"Start/End offsets: {start_offset} / {end_offset}") - if end_offset > 10: + if abs(end_offset) > 10: logger.warning( f"synchronization end_offset == {end_offset}. It should be no more than a few seconds." ) -- cgit v1.2.3