Skip to content
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion adafruit_dht.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def __init__(self, dht11, pin, trig_wait):
# and we're better off having a running process
if _USE_PULSEIO:
self.pulse_in = PulseIn(self._pin, 81, True)
self.pulse_in.pause()

def _pulses_to_binary(self, pulses, start, stop):
"""Takes pulses, a list of transition times, and converts
Expand Down Expand Up @@ -114,7 +115,6 @@ def _get_pulses_pulseio(self):
# specific length of time. Then the device sends back a
# series HIGH and LOW signals. The length the HIGH signals
# represents the device values.
self.pulse_in.pause()
self.pulse_in.clear()
self.pulse_in.resume(self._trig_wait)

Expand Down