From 64e77fd87922bde0941d53a7a21b42eff06aedae Mon Sep 17 00:00:00 2001 From: jposada202020 Date: Thu, 25 Feb 2021 18:42:44 -0500 Subject: [PATCH] Correction of the integer in the new time sleep logic --- adafruit_dht.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_dht.py b/adafruit_dht.py index 102e8e5..2e76eb9 100644 --- a/adafruit_dht.py +++ b/adafruit_dht.py @@ -139,7 +139,7 @@ def _get_pulses_bitbang(self): time.sleep(0.1) dhtpin.value = False # Using the time to pull-down the line according to DHT Model - time.sleep(self._trig_wait // 1000000) + time.sleep(self._trig_wait / 1000000) timestamp = time.monotonic() # take timestamp dhtval = True # start with dht pin true because its pulled up dhtpin.direction = Direction.INPUT