1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 14:42:21 +01:00
This commit is contained in:
J. Nick Koston
2025-06-18 14:24:31 +02:00
parent 74acbda435
commit 610215ab60
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
} }
} }
} }

View File

@@ -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 {