add comment

This commit is contained in:
proddy
2021-03-29 11:14:29 +02:00
parent fbef1ca69a
commit 0237cc1ca4

View File

@@ -193,7 +193,7 @@ void SyslogService::mark_interval(unsigned long interval) {
SyslogService::QueuedLogMessage::QueuedLogMessage(unsigned long id, std::shared_ptr<uuid::log::Message> && content) SyslogService::QueuedLogMessage::QueuedLogMessage(unsigned long id, std::shared_ptr<uuid::log::Message> && content)
: id_(id) : id_(id)
, content_(std::move(content)) { , content_(std::move(content)) {
// Added by proddy - check Ethernet up also // Added by proddy - check for Ethernet too. This assumes the network has already started.
if (time_good_ || WiFi.status() == WL_CONNECTED || ETH.linkUp()) { if (time_good_ || WiFi.status() == WL_CONNECTED || ETH.linkUp()) {
#if UUID_SYSLOG_HAVE_GETTIMEOFDAY #if UUID_SYSLOG_HAVE_GETTIMEOFDAY
if (gettimeofday(&time_, nullptr) != 0) { if (gettimeofday(&time_, nullptr) != 0) {