mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
fix lint warning
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user