mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +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
598 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
