From ddf1e27ac34a014ae66fd80936cd00be885cd0d0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 20 Nov 2025 22:55:08 +0000 Subject: [PATCH] Move gpio_intr_enable after gpio_isr_handler_add per review feedback Co-authored-by: jesserockz <3060199+jesserockz@users.noreply.github.com> --- esphome/components/esp32/gpio.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/esp32/gpio.cpp b/esphome/components/esp32/gpio.cpp index 392499836c..5c4872e6fb 100644 --- a/esphome/components/esp32/gpio.cpp +++ b/esphome/components/esp32/gpio.cpp @@ -94,6 +94,7 @@ void ESP32InternalGPIOPin::attach_interrupt(void (*func)(void *), void *arg, gpi isr_service_installed = true; } gpio_isr_handler_add(this->get_pin_num(), func, arg); + gpio_intr_enable(this->get_pin_num()); } std::string ESP32InternalGPIOPin::dump_summary() const {