mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Merge branch 'binary_sensor_gpio_polling' into integration
This commit is contained in:
		| @@ -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_; | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user