From bf49d7adf13fa9f2715a8ed99a652071ea169e1e Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Mon, 4 Oct 2021 15:01:08 +0200 Subject: [PATCH] Removed ISR-capable pin from ISR store, no need for it. --- components/xiaomi_bslamp2/front_panel_hal.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/xiaomi_bslamp2/front_panel_hal.h b/components/xiaomi_bslamp2/front_panel_hal.h index 8e385ac..af92872 100644 --- a/components/xiaomi_bslamp2/front_panel_hal.h +++ b/components/xiaomi_bslamp2/front_panel_hal.h @@ -180,7 +180,6 @@ class FrontPanelEventParser { }; struct FrontPanelTriggerStore { - ISRInternalGPIOPin pin; volatile int event_id{0}; static void gpio_intr(FrontPanelTriggerStore *store); }; @@ -223,7 +222,6 @@ class FrontPanelHAL : public Component, public i2c::I2CDevice { void setup() { ESP_LOGCONFIG(TAG, "Setting up I2C trigger pin interrupt..."); this->trigger_pin_->setup(); - this->store_.pin = this->trigger_pin_->to_isr(); this->trigger_pin_->attach_interrupt( FrontPanelTriggerStore::gpio_intr, &this->store_,