Browse Source

Removed ISR-capable pin from ISR store, no need for it.

pull/56/head
Maurice Makaay 3 years ago
parent
commit
bf49d7adf1
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      components/xiaomi_bslamp2/front_panel_hal.h

+ 0
- 2
components/xiaomi_bslamp2/front_panel_hal.h View File

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


Loading…
Cancel
Save