mirror of
https://github.com/esphome/esphome.git
synced 2026-09-25 14:00:25 +00:00
[core] Add no-arg status_set_warning() to allow linker GC of const char* overload (#14821)
This commit is contained in:
@@ -416,7 +416,7 @@ void USBUartTypeCdcAcm::on_connected() {
|
||||
for (auto *channel : this->channels_) {
|
||||
if (i == cdc_devs.size()) {
|
||||
ESP_LOGE(TAG, "No configuration found for channel %d", channel->index_);
|
||||
this->status_set_warning("No configuration found for channel");
|
||||
this->status_set_warning(LOG_STR("No configuration found for channel"));
|
||||
break;
|
||||
}
|
||||
channel->cdc_dev_ = cdc_devs[i++];
|
||||
|
||||
Reference in New Issue
Block a user