Skip to content

Commit d2da873

Browse files
committed
make delay for bitbang same as for pulseio
1 parent d122696 commit d2da873

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
@@ -140,7 +140,7 @@ def _get_pulses(self):
140140
dhtval = True # start with dht pin true because its pulled up
141141
dhtpin.direction = Direction.INPUT
142142
dhtpin.pull = Pull.UP
143-
while time.monotonic() - timestamp < 0.1:
143+
while time.monotonic() - timestamp < 0.25:
144144
if dhtval != dhtpin.value:
145145
dhtval = not dhtval # we toggled
146146
transitions.append(time.monotonic()) # save the timestamp

0 commit comments

Comments
 (0)