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_,