@@ -28,8 +28,8 @@ void DHT::begin(void) {
2828 // Using this value makes sure that millis() - lastreadtime will be
2929 // >= MIN_INTERVAL right away. Note that this assignment wraps around,
3030 // but so will the subtraction.
31- _lastreadtime = millis ()- MIN_INTERVAL;
32- DEBUG_PRINT (" Max clock cycles: " ); DEBUG_PRINTLN (_maxcycles, DEC);
31+ _lastreadtime = millis () - MIN_INTERVAL;
32+ DEBUG_PRINT (" DHT max clock cycles: " ); DEBUG_PRINTLN (_maxcycles, DEC);
3333}
3434
3535// boolean S == Scale. True == Fahrenheit; False == Celcius
@@ -165,12 +165,12 @@ bool DHT::read(bool force) {
165165 // First expect a low signal for ~80 microseconds followed by a high signal
166166 // for ~80 microseconds again.
167167 if (expectPulse (LOW) == TIMEOUT) {
168- DEBUG_PRINTLN (F (" Timeout waiting for start signal low pulse." ));
168+ DEBUG_PRINTLN (F (" DHT timeout waiting for start signal low pulse." ));
169169 _lastresult = false ;
170170 return _lastresult;
171171 }
172172 if (expectPulse (HIGH) == TIMEOUT) {
173- DEBUG_PRINTLN (F (" Timeout waiting for start signal high pulse." ));
173+ DEBUG_PRINTLN (F (" DHT timeout waiting for start signal high pulse." ));
174174 _lastresult = false ;
175175 return _lastresult;
176176 }
@@ -195,7 +195,7 @@ bool DHT::read(bool force) {
195195 uint32_t lowCycles = cycles[2 *i];
196196 uint32_t highCycles = cycles[2 *i+1 ];
197197 if ((lowCycles == TIMEOUT) || (highCycles == TIMEOUT)) {
198- DEBUG_PRINTLN (F (" Timeout waiting for pulse." ));
198+ DEBUG_PRINTLN (F (" DHT timeout waiting for pulse." ));
199199 _lastresult = false ;
200200 return _lastresult;
201201 }
@@ -210,7 +210,7 @@ bool DHT::read(bool force) {
210210 // stored data.
211211 }
212212
213- DEBUG_PRINTLN (F (" Received:" ));
213+ DEBUG_PRINTLN (F (" Received from DHT :" ));
214214 DEBUG_PRINT (data[0 ], HEX); DEBUG_PRINT (F (" , " ));
215215 DEBUG_PRINT (data[1 ], HEX); DEBUG_PRINT (F (" , " ));
216216 DEBUG_PRINT (data[2 ], HEX); DEBUG_PRINT (F (" , " ));
@@ -224,7 +224,7 @@ bool DHT::read(bool force) {
224224 return _lastresult;
225225 }
226226 else {
227- DEBUG_PRINTLN (F (" Checksum failure!" ));
227+ DEBUG_PRINTLN (F (" DHT checksum failure!" ));
228228 _lastresult = false ;
229229 return _lastresult;
230230 }
0 commit comments