Skip to content

Bug: Incorrect flag set #8

@simlu

Description

@simlu

The following

self._flag(0x83, 3, <BOOL>)

needs to be changes to

self._flag(0x83, 2, <BOOL>)

This is because 0x04 is actually 0100 in binary and the _flag is zero indexed for the bit.

Occurrences that need to be changes are:

https://github.com/uceeatz/VL53L0X/blob/master/VL53L0X.py#L334
https://github.com/uceeatz/VL53L0X/blob/master/VL53L0X.py#L358

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