Skip to content

Decoding bad Air/Fuel status data #1

Description

@brendan-w

currently, the decoders for air_status and fuel_status use math.log(v,2) to determine which bit is set. This explodes when 'v' is zero, and will give false positive decodings when more than one bit is set. This should be more robust, and return failure upon receiving bad data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions