mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	rename
This commit is contained in:
		| @@ -67,10 +67,10 @@ void IRAM_ATTR LoopTestISRComponent::simulate_isr_enable() { | ||||
|  | ||||
|   this->isr_call_count_++; | ||||
|  | ||||
|   // Call enable_loop_soon_from_isr multiple times to test that it's safe | ||||
|   this->enable_loop_soon_from_isr(); | ||||
|   this->enable_loop_soon_from_isr();  // Test multiple calls | ||||
|   this->enable_loop_soon_from_isr();  // Should be idempotent | ||||
|   // Call enable_loop_soon_any_context multiple times to test that it's safe | ||||
|   this->enable_loop_soon_any_context(); | ||||
|   this->enable_loop_soon_any_context();  // Test multiple calls | ||||
|   this->enable_loop_soon_any_context();  // Should be idempotent | ||||
|  | ||||
|   // Note: In a real ISR, we cannot use ESP_LOG* macros as they're not ISR-safe | ||||
|   // For testing, we'll track the call count and log it from the main loop | ||||
|   | ||||
| @@ -14,7 +14,7 @@ class LoopTestISRComponent : public Component { | ||||
|   void setup() override; | ||||
|   void loop() override; | ||||
|  | ||||
|   // Simulates an ISR calling enable_loop_soon_from_isr | ||||
|   // Simulates an ISR calling enable_loop_soon_any_context | ||||
|   void simulate_isr_enable(); | ||||
|  | ||||
|   float get_setup_priority() const override { return setup_priority::DATA; } | ||||
|   | ||||
| @@ -35,7 +35,7 @@ loop_test_component: | ||||
|       test_redundant_operations: true | ||||
|       disable_after: 10 | ||||
|  | ||||
|   # ISR test component that uses enable_loop_soon_from_isr | ||||
|   # ISR test component that uses enable_loop_soon_any_context | ||||
|   isr_components: | ||||
|     - id: isr_test | ||||
|       name: "isr_test" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user