fix scope issue

This commit is contained in:
J. Nick Koston 2025-07-04 11:40:11 -05:00
parent a592e96709
commit 9c22772758
No known key found for this signature in database

View File

@ -87,7 +87,8 @@ api:
} }
}; };
TestComponent test_component; // Use a static instance so it doesn't go out of scope
static TestComponent test_component;
test_component.test_defer(); test_component.test_defer();
ESP_LOGD("defer_test", "Deferred 10 items using defer(), waiting for execution..."); ESP_LOGD("defer_test", "Deferred 10 items using defer(), waiting for execution...");