cvb

Dependents:   DHT11-HelloWorld1 DHT11-HelloWorld1 STMNucleoF401RE_ExampleCode_08_DHT11

Fork of DHT by Components

Revision:
1:25c96950b6ed
Parent:
0:9b5b3200688f
Child:
2:df22ddf10d75
--- a/DHT.cpp	Mon Jul 09 19:47:43 2012 +0000
+++ b/DHT.cpp	Wed Jul 24 06:59:28 2013 +0000
@@ -55,7 +55,7 @@
     for (i = 0; i < DHT_DATA_BIT_COUNT; i++) {
         bitTimes[i] = 0;
     }
-
+#if 0
     if (!_firsttime) {
         if (int(currentTime - _lastReadTime) < 2) {
             err = ERROR_NO_PATIENCE;
@@ -65,6 +65,7 @@
         _firsttime=false;
         _lastReadTime=currentTime;
     }
+#endif
     retryCount = 0;
 
     do {