Skip to content

Commit

Permalink
Update BresserWeatherSensorMQTT.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 3cf8d74 commit 007fceb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -732,13 +732,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 007fceb

Please sign in to comment.