@@ -28,8 +28,8 @@ void DHT::begin(void) {
28
28
// Using this value makes sure that millis() - lastreadtime will be
29
29
// >= MIN_INTERVAL right away. Note that this assignment wraps around,
30
30
// 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);
33
33
}
34
34
35
35
// boolean S == Scale. True == Fahrenheit; False == Celcius
@@ -165,12 +165,12 @@ bool DHT::read(bool force) {
165
165
// First expect a low signal for ~80 microseconds followed by a high signal
166
166
// for ~80 microseconds again.
167
167
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." ));
169
169
_lastresult = false ;
170
170
return _lastresult;
171
171
}
172
172
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." ));
174
174
_lastresult = false ;
175
175
return _lastresult;
176
176
}
@@ -195,7 +195,7 @@ bool DHT::read(bool force) {
195
195
uint32_t lowCycles = cycles[2 *i];
196
196
uint32_t highCycles = cycles[2 *i+1 ];
197
197
if ((lowCycles == TIMEOUT) || (highCycles == TIMEOUT)) {
198
- DEBUG_PRINTLN (F (" Timeout waiting for pulse." ));
198
+ DEBUG_PRINTLN (F (" DHT timeout waiting for pulse." ));
199
199
_lastresult = false ;
200
200
return _lastresult;
201
201
}
@@ -210,7 +210,7 @@ bool DHT::read(bool force) {
210
210
// stored data.
211
211
}
212
212
213
- DEBUG_PRINTLN (F (" Received:" ));
213
+ DEBUG_PRINTLN (F (" Received from DHT :" ));
214
214
DEBUG_PRINT (data[0 ], HEX); DEBUG_PRINT (F (" , " ));
215
215
DEBUG_PRINT (data[1 ], HEX); DEBUG_PRINT (F (" , " ));
216
216
DEBUG_PRINT (data[2 ], HEX); DEBUG_PRINT (F (" , " ));
@@ -224,7 +224,7 @@ bool DHT::read(bool force) {
224
224
return _lastresult;
225
225
}
226
226
else {
227
- DEBUG_PRINTLN (F (" Checksum failure!" ));
227
+ DEBUG_PRINTLN (F (" DHT checksum failure!" ));
228
228
_lastresult = false ;
229
229
return _lastresult;
230
230
}
0 commit comments