mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
too much debug!
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user