Skip to content

Commit

Permalink
Update BresserWeatherSensorMQTTWifiMgr.ino
Browse files Browse the repository at this point in the history
Replaced _DEBUG_MODE_ by log_d()
  • Loading branch information
matthias-bs committed Sep 27, 2023
1 parent dc418b0 commit 3cf8d74
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -903,13 +903,12 @@ void loop() {

// Go to sleep only after complete set of data has been sent
if (SLEEP_EN && (decode_ok || force_sleep)) {
#ifdef _DEBUG_MODE_
if (force_sleep) {
Serial.println(F("Awake time-out!"));
} else {
Serial.println(F("Data forwarding completed."));
}
#endif
if (force_sleep) {
log_d("Awake time-out!");
} else {
log_d("Data forwarding completed.");
}

log_i("Sleeping for %d ms\n", SLEEP_INTERVAL);
log_i("%s: %s\n", mqttPubStatus.c_str(), "offline");
Serial.flush();
Expand Down

0 comments on commit 3cf8d74

Please sign in to comment.