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:
		| @@ -14,7 +14,7 @@ void IRAM_ATTR GPIOBinarySensorStore::gpio_intr(GPIOBinarySensorStore *arg) { | ||||
|     arg->changed_ = true; | ||||
|     // Wake up the component from its disabled loop state | ||||
|     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 last_state_{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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user