mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +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); |   static void gpio_intr(GPIOBinarySensorStore *arg); | ||||||
|  |  | ||||||
|   bool get_state() const { |   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_; |     return this->state_; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user