summaryrefslogtreecommitdiffstats
path: root/reversing_tools
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-03-26 19:56:13 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-03-26 20:00:32 +0100
commit9433599de3d9c8e10a9985e3c40a7eb35eeb784d (patch)
treee78c28234f22713e1d9a0ca0bc5f55a658a5e602 /reversing_tools
parentUpdate the local Emacs config to match the black/isort/flake8 configs. (diff)
downloadglucometerutils-9433599de3d9c8e10a9985e3c40a7eb35eeb784d.tar
glucometerutils-9433599de3d9c8e10a9985e3c40a7eb35eeb784d.tar.gz
glucometerutils-9433599de3d9c8e10a9985e3c40a7eb35eeb784d.tar.bz2
glucometerutils-9433599de3d9c8e10a9985e3c40a7eb35eeb784d.tar.lz
glucometerutils-9433599de3d9c8e10a9985e3c40a7eb35eeb784d.tar.xz
glucometerutils-9433599de3d9c8e10a9985e3c40a7eb35eeb784d.tar.zst
glucometerutils-9433599de3d9c8e10a9985e3c40a7eb35eeb784d.zip
Diffstat (limited to 'reversing_tools')
-rwxr-xr-xreversing_tools/abbott/extract_freestyle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/reversing_tools/abbott/extract_freestyle.py b/reversing_tools/abbott/extract_freestyle.py
index 8e1c0d2..0f21d88 100755
--- a/reversing_tools/abbott/extract_freestyle.py
+++ b/reversing_tools/abbott/extract_freestyle.py
@@ -170,8 +170,9 @@ def main():
message = packet.payload[1:]
else:
message_length = packet.payload[1]
+ message_end_idx = 2 + message_length
message_type = f" {message_type:02x}"
- message = packet.payload[2 : 2 + message_length]
+ message = packet.payload[2:message_end_idx]
print(
usbmon.chatter.dump_bytes(