1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-14 17:22:20 +01:00

Merge branch 'binary_sensor_gpio_polling' into integration

This commit is contained in:
J. Nick Koston
2025-06-17 13:42:02 +02:00

View File

@@ -16,7 +16,8 @@ class GPIOBinarySensorStore {
static void gpio_intr(GPIOBinarySensorStore *arg);
bool get_state() const {
InterruptLock lock;
// No lock needed: state_ is atomically updated by ISR
// Volatile ensures we read the latest value
return this->state_;
}