mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Shorten cryptic message
This commit is contained in:
parent
3890237a5f
commit
e843bc929e
@ -162,7 +162,7 @@ bool DhtRead(uint32_t sensor) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (isnan(temperature) || isnan(humidity)) {
|
if (isnan(temperature) || isnan(humidity)) {
|
||||||
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_DHT "Invalid NAN reading"));
|
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_DHT "Invalid reading"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ bool DhtRead(uint32_t sensor) {
|
|||||||
float humidity = Dht[sensor].dht->readHumidity(false);
|
float humidity = Dht[sensor].dht->readHumidity(false);
|
||||||
|
|
||||||
if (isnan(temperature) || isnan(humidity)) {
|
if (isnan(temperature) || isnan(humidity)) {
|
||||||
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_DHT "Invalid NAN reading"));
|
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_DHT "Invalid reading"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user