Fork
Dependents: DHT11_and_DHT22_MbedOS5_Example
Revision 1:25c96950b6ed, committed 2013-07-24
- Comitter:
- yihui
- Date:
- Wed Jul 24 06:59:28 2013 +0000
- Parent:
- 0:9b5b3200688f
- Child:
- 2:df22ddf10d75
- Commit message:
- Seeeduino Arch + Grove - OLED 128x64 + Grove - Temperature & Humidity Sensor Pro to sense the environment
Changed in this revision
| DHT.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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 {
Daniel Lee