Skip to content

Commit 7c81737

Browse files
authored
Merge pull request #64 from jposada202020/Integer_division_correction
Correction of the integer in the new time sleep logic
2 parents 8695a11 + 64e77fd commit 7c81737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_dht.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _get_pulses_bitbang(self):
139139
time.sleep(0.1)
140140
dhtpin.value = False
141141
# Using the time to pull-down the line according to DHT Model
142-
time.sleep(self._trig_wait // 1000000)
142+
time.sleep(self._trig_wait / 1000000)
143143
timestamp = time.monotonic() # take timestamp
144144
dhtval = True # start with dht pin true because its pulled up
145145
dhtpin.direction = Direction.INPUT

0 commit comments

Comments
 (0)