mirror of
https://github.com/esphome/esphome.git
synced 2025-10-23 04:03:52 +01:00
Update esphome/components/script/script.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -116,7 +116,7 @@ template<typename... Ts> class QueueingScript : public Script<Ts...>, public Com
|
|||||||
// max_runs_ is the maximum *total* instances (running + queued)
|
// max_runs_ is the maximum *total* instances (running + queued)
|
||||||
// So we reject when num_queued_ + 1 >= max_runs_ (queued + running >= max)
|
// So we reject when num_queued_ + 1 >= max_runs_ (queued + running >= max)
|
||||||
if (this->num_queued_ + 1 >= this->max_runs_) {
|
if (this->num_queued_ + 1 >= this->max_runs_) {
|
||||||
this->esp_logw_(__LINE__, ESPHOME_LOG_FORMAT("Script '%s' maximum number of queued runs exceeded!"),
|
this->esp_logw_(__LINE__, ESPHOME_LOG_FORMAT("Script '%s' maximum total instances (running + queued) exceeded!"),
|
||||||
LOG_STR_ARG(this->name_));
|
LOG_STR_ARG(this->name_));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user