Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix issue #32
  • Loading branch information
yeyeto2788 committed Dec 14, 2020
commit 1d3929fe561a4e26da83c7fe04565c02790b80bd
2 changes: 1 addition & 1 deletion adafruit_dht.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _get_pulses_bitbang(self):
timestamp = time.monotonic() # take timestamp
dhtval = True # start with dht pin true because its pulled up
dhtpin.direction = Direction.INPUT
dhtpin.pull = Pull.UP
dhtpin.pull = None
while time.monotonic() - timestamp < 0.25:
if dhtval != dhtpin.value:
dhtval = not dhtval # we toggled
Expand Down