Keep original template name to preserve compiler optimizations

Using the original register_component name (just moved to protected)
produces identical compiled output to the baseline, avoiding the
symbol name length overhead from renaming.

Co-Authored-By: J. Nick Koston <nick@koston.org>
This commit is contained in:
J. Nick Koston
2026-02-27 21:32:27 -10:00
co-authored by J. Nick Koston
parent ebde654259
commit d2af639e71
7 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -16,10 +16,10 @@ void setup() {
auto *log = new logger::Logger(115200); // NOLINT
log->pre_setup();
log->set_uart_selection(logger::UART_SELECTION_UART0);
App.register_component_(log);
App.register_component(log);
auto *wifi = new wifi::WiFiComponent(); // NOLINT
App.register_component_(wifi);
App.register_component(wifi);
wifi::WiFiAP ap;
ap.set_ssid("Test SSID");
ap.set_password("password1");