Adds more time to acquire data

Example code consistently times out while grabbing data.  Increasing the delta range for data acquisition fixes this.
This commit is contained in:
Alex Gutowski 2013-10-28 01:06:55 -05:00
parent d5ec9e0185
commit 6bc0283703

View File

@ -90,7 +90,7 @@ void idDHT11::isrCallback() {
detachInterrupt(intNumber);
status = IDDHTLIB_ERROR_DELTA;
state = STOPPED;
} else if(60<delta && delta<135) { //valid in timing
} else if(60<delta && delta<155) { //valid in timing
if(delta>90) //is a one
bits[idx] |= (1 << cnt);
if (cnt == 0) { // whe have fullfilled the byte, go to next