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

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

Open
dducrest opened this issue Oct 28, 2021 · 0 comments
Open

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

dducrest opened this issue Oct 28, 2021 · 0 comments

Comments

@dducrest
Copy link

dducrest commented Oct 28, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant