Skip to content

python app is blocked when import adafruit_ahtx0 #20

@simryang

Description

@simryang

My app uses adafruit_ahtx0 in python and raspberry pi4 environment.
And just one device has problem at import time..

Error position is in calibrate() function

https://github.com/adafruit/Adafruit_CircuitPython_AHTx0/blob/d6e60adfae22a8d2bf94c2e207c4a4e9f0bfc7f8/adafruit_ahtx0.py#L133C1-L134C29

I think it needs some retry point or timeout. So if the state still BUSY, it should fail, not maintain blocking state.

Please check this issue.

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