Skip to content

Commit 90149ac

Browse files
committed
nicetabs
1 parent 98fcb2b commit 90149ac

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

adafruit_dht.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,21 @@ def _get_pulses_pulseio(self):
106106
"""
107107
pulses = array.array('H')
108108
if _USE_PULSEIO:
109-
# The DHT type device use a specialize 1-wire protocol
110-
# The microprocessor first sends a LOW signal for a
111-
# specific length of time. Then the device sends back a
112-
# series HIGH and LOW signals. The length the HIGH signals
113-
# represents the device values.
114-
self.pulse_in.pause()
115-
self.pulse_in.clear()
116-
self.pulse_in.resume(self._trig_wait)
117-
118-
# loop until we get the return pulse we need or
119-
# time out after 1/4 second
120-
time.sleep(0.25)
121-
self.pulse_in.pause()
122-
while self.pulse_in:
123-
pulses.append(self.pulse_in.popleft())
109+
# The DHT type device use a specialize 1-wire protocol
110+
# The microprocessor first sends a LOW signal for a
111+
# specific length of time. Then the device sends back a
112+
# series HIGH and LOW signals. The length the HIGH signals
113+
# represents the device values.
114+
self.pulse_in.pause()
115+
self.pulse_in.clear()
116+
self.pulse_in.resume(self._trig_wait)
117+
118+
# loop until we get the return pulse we need or
119+
# time out after 1/4 second
120+
time.sleep(0.25)
121+
self.pulse_in.pause()
122+
while self.pulse_in:
123+
pulses.append(self.pulse_in.popleft())
124124
return pulses
125125

126126
def _get_pulses_bitbang(self):

0 commit comments

Comments
 (0)