mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 18:04:19 -07:00
[core] Conditionally compile get_loop_priority with USE_LOOP_PRIORITY (#14210)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user