Skip to content

Error in decoding byte data #1

Description

@reubenstr

# The data appears to be shifted right by 8 bits which breaks int64 twos compliment convention.

Replace with:

raw_data = int.from_bytes(reply.data[1:8] + b'\x00', byteorder='little', signed=True)
raw_pos = raw_data / 1000.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions