Skip to content

Commit 1df5302

Browse files
committed
FrameDetector: Fix issue in measurement reception
- Fix index in extracted data slice
1 parent d08730e commit 1df5302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zbnt/FrameDetector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def receive_measurement(self, data):
113113
ext_data = data[ext_offset:]
114114

115115
if ext_count % log_width != 0:
116-
ext_data = ext_data[:-log_width] + ext_data[-log_width + ext_count % log_width:]
116+
ext_data = ext_data[:-log_width] + ext_data[-(ext_count % log_width):]
117117

118118
self.measurement_handler(self.id, (time, match_dir, match_mask, ext_data))
119119

0 commit comments

Comments
 (0)