Skip to content
Snippets Groups Projects
Commit d8c3405e authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

fixed data conversion

parent ab790eaa
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ class LPS28DFW:
if n_bytes == 1:
return int.from_bytes(data, "little")
elif n_bytes == 2:
return int.from_bytes(data, "big", signed=signed)
return int.from_bytes(data, "big", signed)
elif n_bytes == 3:
value = struct.unpack("<I", data + "\0")[0]
if value & 0x800000:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment