Open ali1234 opened 1 year ago
https://github.com/fivesixzero/CircuitPython_HX711/blob/4efc13f5e69f482d9b43936077e19e5fbeb7f285/hx711/__init__.py#L183
This accepts any int or float because of the or.
or
It should be if gain >= 1 and gain <= 3:
if gain >= 1 and gain <= 3:
https://github.com/fivesixzero/CircuitPython_HX711/blob/4efc13f5e69f482d9b43936077e19e5fbeb7f285/hx711/__init__.py#L183
This accepts any int or float because of the
or
.It should be
if gain >= 1 and gain <= 3: