Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

BUG HX711.select_channel - sleep time does not match comments  #44

@dducrest

Description

@dducrest

select_channel

# after changing channel or gain it has to wait 50 ms to allow adjustment.
# the data before is garbage and cannot be used.
self._read()
time.sleep(0.5)

I noticed that the comment says 50ms, but the time.sleep indicates 500ms.
I think that this is a likely an error that will significantly slow down the rate at which multiple channels are read.

The same conflict in documentation vs implementation appears in set_gain_A

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