mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 09:38:42 +00:00
d6db522b1d4a48df9e44532e22705a904aa757a1
ESP8266's settimeofday() returns EINVAL (22) directly as the return value when the timezone parameter is non-NULL, rather than following POSIX convention of returning -1 and setting errno. The previous fallback code checked errno == EINVAL which never matched because errno was never set, so the retry with nullptr never triggered. Fix by always passing nullptr on ESP8266 since the platform requires it.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
601 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
