changes for standalone compilation

This commit is contained in:
proddy
2022-03-26 22:17:25 +01:00
parent be0d5557a6
commit d0efe8eb47
5 changed files with 11 additions and 6 deletions

View File

@@ -1253,7 +1253,9 @@ void Thermostat::process_RCTime(std::shared_ptr<const Telegram> telegram) {
}
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"));
}
}