From 6bc02837033f31cfb43808b211c49609a01dea54 Mon Sep 17 00:00:00 2001 From: Alex Gutowski Date: Mon, 28 Oct 2013 01:06:55 -0500 Subject: [PATCH] Adds more time to acquire data Example code consistently times out while grabbing data. Increasing the delta range for data acquisition fixes this. --- idDHT11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idDHT11.cpp b/idDHT11.cpp index 4f03667..c24bee7 100644 --- a/idDHT11.cpp +++ b/idDHT11.cpp @@ -90,7 +90,7 @@ void idDHT11::isrCallback() { detachInterrupt(intNumber); status = IDDHTLIB_ERROR_DELTA; state = STOPPED; - } else if(6090) //is a one bits[idx] |= (1 << cnt); if (cnt == 0) { // whe have fullfilled the byte, go to next