mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 00:07:32 +00:00
36c120fb07923dc8d33619d384f2bc6acf3d2fb4
The running-app position cache lived as three function-local statics inside get_running_app_position(). They cannot be IDFOTABackend members (the backend is per-connection, the cache must outlive a backend that called esp_partition_unload_all() in a prior aborted partition-table OTA), but burying them inside the function made the lifetime and shared-across-connections semantics implicit. Move them to file scope with s_running_app_ prefix so the process-scoped lifetime is visible at first read, and tighten the surrounding comments. No behaviour change.
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
592 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
