From 97eba625b9bd6e92f03b85648a5fe1dddc9a65d9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 27 Feb 2026 22:06:05 -1000 Subject: [PATCH] Revert inline - ESP8266 compiler doesn't outline push_back ISRA --- esphome/core/application.cpp | 1 + esphome/core/application.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/core/application.cpp b/esphome/core/application.cpp index e51bc22f155..f963afa597c 100644 --- a/esphome/core/application.cpp +++ b/esphome/core/application.cpp @@ -79,6 +79,7 @@ static void insertion_sort_by_priority(Iterator first, Iterator last) { } } +void Application::register_component_(Component *comp) { this->components_.push_back(comp); } void Application::setup() { ESP_LOGI(TAG, "Running through setup()"); ESP_LOGV(TAG, "Sorting components by setup priority"); diff --git a/esphome/core/application.h b/esphome/core/application.h index 9f4672b75dc..ba3ce13291e 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -521,7 +521,7 @@ class Application { #endif #endif - inline void register_component_(Component *comp) { this->components_.push_back(comp); } + void register_component_(Component *comp); void calculate_looping_components_(); void add_looping_components_by_state_(bool match_loop_done);