Needed to comment out time limitations
Fork of DHT by
Diff: DHT.cpp
- Revision:
- 1:f7551b7727db
- Parent:
- 0:9b5b3200688f
--- a/DHT.cpp Mon Jul 09 19:47:43 2012 +0000 +++ b/DHT.cpp Tue Nov 07 21:31:28 2017 +0000 @@ -56,7 +56,7 @@ bitTimes[i] = 0; } - if (!_firsttime) { + /*if (!_firsttime) { if (int(currentTime - _lastReadTime) < 2) { err = ERROR_NO_PATIENCE; return err; @@ -64,7 +64,7 @@ } else { _firsttime=false; _lastReadTime=currentTime; - } + }*/ retryCount = 0; do { @@ -141,6 +141,7 @@ } else { err = ERROR_CHECKSUM; + _lastReadTime = currentTime; } return err;