mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 17:48:40 +00:00
[core] Conditionally compile get_loop_priority with USE_LOOP_PRIORITY (#14210)
This commit is contained in:
@@ -85,7 +85,9 @@ void store_component_error_message(const Component *component, const char *messa
|
||||
static constexpr uint16_t WARN_IF_BLOCKING_INCREMENT_MS =
|
||||
10U; ///< How long the blocking time must be larger to warn again
|
||||
|
||||
#ifdef USE_LOOP_PRIORITY
|
||||
float Component::get_loop_priority() const { return 0.0f; }
|
||||
#endif
|
||||
|
||||
float Component::get_setup_priority() const { return setup_priority::DATA; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user