Skip to content

Commit

Permalink
Update BresserWeatherSensorMQTTCustom.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 007fceb commit 2b34c4c
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -730,13 +730,11 @@ 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 2b34c4c

Please sign in to comment.