1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-01 15:41:52 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
Jesse Hills
49eba0a9bc Logs requests left 2024-08-28 11:23:10 +12:00

View File

@@ -43,6 +43,7 @@ void PowerSupply::unrequest_high_power() {
return;
}
this->active_requests_--;
ESP_LOGD(TAG, "Unrequesting high power, %d requests left.", this->active_requests_);
if (this->active_requests_ == 0) {
this->set_timeout("power-supply-off", this->keep_on_time_, [this]() {
ESP_LOGD(TAG, "Disabling power supply.");