Skip to content

Unit fails to init after first POR #37

@nseidle

Description

@nseidle

At first power on, the library is unable to begin a sensor. I think it's related to the changes made within VL53L1X_SensorInit()

To replicate,

  • load any example and check for when begin() returns != 0. (We need to fix the examples to freeze on failure)
  • Hold Uno in reset
  • Unplug, then replug sensor
  • Release reset on Uno

Sketch will fail to init sensor every time.
Hitting reset on Uno (no sensor power cycle), library starts every time.

I think most users aren't seeing this because they are hitting reset or some other power sequence.

Also related (I think) - library freezes when no sensor is connected.

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