change shower log message if using NTP

This commit is contained in:
Proddy
2023-10-30 13:10:03 +01:00
parent b9e57414ce
commit 527dd870a2

View File

@@ -111,9 +111,11 @@ void Shower::loop() {
char dt[25]; char dt[25];
strftime(dt, sizeof(dt), "%FT%T%z", tm_); strftime(dt, sizeof(dt), "%FT%T%z", tm_);
doc["timestamp"] = dt; doc["timestamp"] = dt;
LOG_INFO("shower finished (duration %s)", dt);
} else {
LOG_INFO("shower finished (duration %lu s)", duration_);
} }
Mqtt::queue_publish("shower_data", doc.as<JsonObject>()); Mqtt::queue_publish("shower_data", doc.as<JsonObject>());
LOG_INFO("finished with duration %lu seconds", duration_);
} }
} }