[core] Conditionally compile get_loop_priority with USE_LOOP_PRIORITY (#14210)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-02-23 10:57:23 +13:00
1 parent 509f06afac
commit ede2da2fbc
20 files changed
+45

No files matched your search

+2
View File
@@ -109,9 +109,11 @@ void Application::setup() {
if (component->can_proceed())
continue;
#ifdef USE_LOOP_PRIORITY
// Sort components 0 through i by loop priority
insertion_sort_by_priority<decltype(this->components_.begin()), &Component::get_loop_priority>(
this->components_.begin(), this->components_.begin() + i + 1);
#endif
do {
uint8_t new_app_state = STATUS_LED_WARNING;