From d465573b2aa63acaed65d70cdc7038e5333a4e16 Mon Sep 17 00:00:00 2001 From: Viktor Dragomiretskyy Date: Tue, 23 Jun 2020 02:46:42 +1200 Subject: [PATCH] Fix offset for 009a --- proto9x/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto9x/sensor.py b/proto9x/sensor.py index a7b91b8..9ac1b4e 100644 --- a/proto9x/sensor.py +++ b/proto9x/sensor.py @@ -120,7 +120,7 @@ def append_new_image(key=0, prev=b''): raise Exception('Response size does not match %d != %d', l, len(res)) # FIXME check how it's done rather than using a hardcoded offsets - res, new = res[:0x6c], res[0x6c:] + res, new = res[:0x74], res[0x74:] return (new_key, res, new)