Skip to content

Commit 5ed9818

Browse files
committed
Fix DHT11 bug -> adafruit#48
1 parent c978977 commit 5ed9818

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

DHT.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ boolean DHT::read(bool force) {
151151
// and we don't want any interruptions.
152152
InterruptLock lock;
153153

154-
// End the start signal by setting data line high for 40 microseconds.
155-
digitalWrite(_pin, HIGH);
156-
delayMicroseconds(40);
157-
158154
// Now start reading the data line to get the value from the DHT sensor.
159155
pinMode(_pin, INPUT_PULLUP);
160156
delayMicroseconds(10); // Delay a bit to let sensor pull data line low.

0 commit comments

Comments
 (0)