mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +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
546 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
