mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
teardown
This commit is contained in:
@@ -257,7 +257,7 @@ void Application::teardown_components(uint32_t timeout_ms) {
|
|||||||
uint32_t start_time = millis();
|
uint32_t start_time = millis();
|
||||||
|
|
||||||
// Use a StaticVector instead of std::vector to avoid heap allocation
|
// Use a StaticVector instead of std::vector to avoid heap allocation
|
||||||
// since we know the maximum size at compile time
|
// since we know the actual size at compile time
|
||||||
StaticVector<Component *, ESPHOME_COMPONENT_COUNT> pending_components;
|
StaticVector<Component *, ESPHOME_COMPONENT_COUNT> pending_components;
|
||||||
|
|
||||||
// Copy all components in reverse order
|
// Copy all components in reverse order
|
||||||
|
Reference in New Issue
Block a user