mirror of
https://github.com/esphome/esphome.git
synced 2025-09-25 14:42:21 +01:00
updates
This commit is contained in:
@@ -14,7 +14,7 @@ void IRAM_ATTR GPIOBinarySensorStore::gpio_intr(GPIOBinarySensorStore *arg) {
|
|||||||
arg->changed_ = true;
|
arg->changed_ = true;
|
||||||
// Wake up the component from its disabled loop state
|
// Wake up the component from its disabled loop state
|
||||||
if (arg->component_ != nullptr) {
|
if (arg->component_ != nullptr) {
|
||||||
arg->component_->enable_loop_soon_from_isr();
|
arg->component_->enable_loop_soon_any_context();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,7 @@ class GPIOBinarySensorStore {
|
|||||||
volatile bool state_{false};
|
volatile bool state_{false};
|
||||||
volatile bool last_state_{false};
|
volatile bool last_state_{false};
|
||||||
volatile bool changed_{false};
|
volatile bool changed_{false};
|
||||||
Component *component_{nullptr}; // Pointer to the component for enable_loop_soon_from_isr()
|
Component *component_{nullptr}; // Pointer to the component for enable_loop_soon_any_context()
|
||||||
};
|
};
|
||||||
|
|
||||||
class GPIOBinarySensor : public binary_sensor::BinarySensor, public Component {
|
class GPIOBinarySensor : public binary_sensor::BinarySensor, public Component {
|
||||||
|
Reference in New Issue
Block a user