mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
4e5d1cae8d9efd8326072fba6dafaad88448d164
On embedded targets (ESP32, RP2040, ESP8266), errno expands to (*__errno()) - a function call returning a pointer to thread-local storage. The compiler cannot optimize away repeated accesses since errno is treated as volatile. Cache it once into a const int local to avoid redundant calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
546 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
