Skip to content

Commit 2d03715

Browse files
committed
fix bug in hr packet decoder
1 parent 67bd00f commit 2d03715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bleakheart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def _decode(self, data: bytearray):
162162
if rr_intervals:
163163
payload['rr']=[]
164164
for i in range(offset, len(data), 2):
165-
rr = int.from_bytes(data[offset:offset+2],
165+
rr = int.from_bytes(data[i:i+2],
166166
'little', signed=False)
167167
# Polar H7, H9, and H10 record RR intervals
168168
# in 1024-th parts of a second. Convert this

0 commit comments

Comments
 (0)