From b4cc300190985516758c5b342ba60d42aaefb3c1 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 27 Mar 2022 16:20:32 +0200 Subject: [PATCH] fix lint warning --- src/devices/thermostat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 1e3b5744c..d4de33b66 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -1251,13 +1251,13 @@ void Thermostat::process_RCTime(std::shared_ptr telegram) { LOG_INFO(F("thermostat time correction from ntp")); } } +#ifndef EMSESP_STANDALONE if (!ntp_ && tm_->tm_year > 110) { // emsesp clock not set, but thermostat clock struct timeval newnow = {.tv_sec = ttime}; -#ifndef EMSESP_STANDALONE settimeofday(&newnow, nullptr); -#endif LOG_INFO(F("ems-esp time set from thermostat")); } +#endif } // process_RCError - type 0xA2 - error message - 14 bytes long