mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 02:26:01 +00:00
62bb8aeeda0e27a5ceec3407697d400fda31004b
When an expander has only output pins configured, loop() was still running every iteration to invalidate the read cache. Since no digital_read() calls will ever be made, this work is wasted. Now disable_loop() is called unconditionally in setup(). For polling mode, loop is re-enabled only when pin_mode() registers an input pin. For interrupt-driven mode, behavior is unchanged as the ISR already manages loop enablement.
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
584 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
