|
@ -180,7 +180,6 @@ class FrontPanelEventParser { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
struct FrontPanelTriggerStore { |
|
|
struct FrontPanelTriggerStore { |
|
|
ISRInternalGPIOPin pin; |
|
|
|
|
|
volatile int event_id{0}; |
|
|
volatile int event_id{0}; |
|
|
static void gpio_intr(FrontPanelTriggerStore *store); |
|
|
static void gpio_intr(FrontPanelTriggerStore *store); |
|
|
}; |
|
|
}; |
|
@ -223,7 +222,6 @@ class FrontPanelHAL : public Component, public i2c::I2CDevice { |
|
|
void setup() { |
|
|
void setup() { |
|
|
ESP_LOGCONFIG(TAG, "Setting up I2C trigger pin interrupt..."); |
|
|
ESP_LOGCONFIG(TAG, "Setting up I2C trigger pin interrupt..."); |
|
|
this->trigger_pin_->setup(); |
|
|
this->trigger_pin_->setup(); |
|
|
this->store_.pin = this->trigger_pin_->to_isr(); |
|
|
|
|
|
this->trigger_pin_->attach_interrupt( |
|
|
this->trigger_pin_->attach_interrupt( |
|
|
FrontPanelTriggerStore::gpio_intr, |
|
|
FrontPanelTriggerStore::gpio_intr, |
|
|
&this->store_, |
|
|
&this->store_, |
|
|