Skip to content

Report of a problem (and fix suggestion) about sensor status message parsing #111

Description

@diocorreia

Hello,

I think to have found a small issue with the parsing of the Sensor Status message. The parsing method stops, when sensor_setting_raw is empty, due to the length field value being 0x7F (128) instead of 0x00 (0). I solved the issue by adding
length = (length % 128) on the line number 165.

length = (property_id[0] >> 1) + 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions