fix lint warning

This commit is contained in:
proddy
2022-03-27 16:20:32 +02:00
parent 03af305761
commit b4cc300190

View File

@@ -1251,13 +1251,13 @@ void Thermostat::process_RCTime(std::shared_ptr<const Telegram> telegram) {
LOG_INFO(F("thermostat time correction from ntp")); LOG_INFO(F("thermostat time correction from ntp"));
} }
} }
#ifndef EMSESP_STANDALONE
if (!ntp_ && tm_->tm_year > 110) { // emsesp clock not set, but thermostat clock if (!ntp_ && tm_->tm_year > 110) { // emsesp clock not set, but thermostat clock
struct timeval newnow = {.tv_sec = ttime}; struct timeval newnow = {.tv_sec = ttime};
#ifndef EMSESP_STANDALONE
settimeofday(&newnow, nullptr); settimeofday(&newnow, nullptr);
#endif
LOG_INFO(F("ems-esp time set from thermostat")); LOG_INFO(F("ems-esp time set from thermostat"));
} }
#endif
} }
// process_RCError - type 0xA2 - error message - 14 bytes long // process_RCError - type 0xA2 - error message - 14 bytes long