too much debug!

This commit is contained in:
proddy
2021-03-04 18:15:01 +01:00
parent e7f3e2e3c8
commit 63783449e3

View File

@@ -64,7 +64,7 @@ void DallasSensor::loop() {
if (state_ == State::IDLE) { if (state_ == State::IDLE) {
if (time_now - last_activity_ >= READ_INTERVAL_MS) { if (time_now - last_activity_ >= READ_INTERVAL_MS) {
#ifdef EMSESP_DEBUG #ifdef EMSESP_DEBUG_SENSOR
LOG_DEBUG(F("Read sensor temperature")); LOG_DEBUG(F("Read sensor temperature"));
#endif #endif
if (bus_.reset() || parasite_) { if (bus_.reset() || parasite_) {
@@ -90,7 +90,7 @@ void DallasSensor::loop() {
} }
} else if (state_ == State::READING) { } else if (state_ == State::READING) {
if (temperature_convert_complete() && (time_now - last_activity_ > CONVERSION_MS)) { if (temperature_convert_complete() && (time_now - last_activity_ > CONVERSION_MS)) {
#ifdef EMSESP_DEBUG #ifdef EMSESP_DEBUG_SENSOR
LOG_DEBUG(F("Scanning for sensors")); LOG_DEBUG(F("Scanning for sensors"));
#endif #endif
bus_.reset_search(); bus_.reset_search();