diff --git a/DHT.cpp b/DHT.cpp index 86ad91c..618c8fe 100644 --- a/DHT.cpp +++ b/DHT.cpp @@ -235,7 +235,7 @@ boolean DHT::read(bool force) { // in the very latest IDE versions): // https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/wiring_pulse.c uint32_t DHT::expectPulse(bool level) { - uint32_t count = 0; + uint16_t count = 0; // On AVR platforms use direct GPIO port access as it's much faster and better // for catching pulses that are 10's of microseconds in length: #ifdef __AVR