fivesixzero / CircuitPython_HX711

A CircuitPython driver for the HX711 load cell amplifer and ADC
MIT License
5 stars 1 forks source link

read() doesn't pass the argument to read_average() #3

Closed utdrmac closed 1 year ago

utdrmac commented 1 year ago

https://github.com/fivesixzero/CircuitPython_HX711/blob/main/hx711/__init__.py#L223

read() takes an arg, average_count. If > 1, call read_average() but does not pass the arg. read_average will always use 10 iterations no matter what number > 1 you give to read()

fivesixzero commented 1 year ago

🤦

Good catch, embarassing mistake. 😂

Thanks for posting the issue, I'll get an updated version pushed out with the fix.

edit: Should be fixed via 4efc13f