adafruit / Adafruit_CircuitPython_DHT

CircuitPython support for DHT11 and DHT22 type temperature/humidity devices
MIT License
182 stars 64 forks source link

Correction of the integer in the new time sleep logic #64

Closed jposada202020 closed 3 years ago

jposada202020 commented 3 years ago

To change the division in the new logic of the sensor. As currently the time waiting will get a 0 (zero) because it uses python // division,
The intend is to get 0.001 secs for DHT22 and 0.018 secs for DHT11 as the pulsein logic. The change will get a float instead of an int getting the desired value