mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 01:15:33 +00:00
ddbf6f2347119006963a261f0d307f45ac0df658
Split Application::feed_wdt() into an ALWAYS_INLINE wrapper that checks the 3ms rate limit against last_wdt_feed_ and a feed_wdt_slow_() callee that performs the actual arch_feed_wdt() + status LED re-dispatch. Callers on the hot path (loop_task before/after each component) that already have a millis() timestamp in hand now pay only a load + sub + branch on the no-op path instead of a full call8 / entry / retw. Moves the rate-limit state from a function-local static to a class member (last_wdt_feed_) so the inline can access 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
549 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
