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

This commit is contained in:
J. Nick Koston
2026-02-22 15:57:23 -06:00
committed by GitHub
parent 509f06afac
commit ede2da2fbc
20 changed files with 45 additions and 0 deletions

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;