[core] Add no-arg status_set_warning() to allow linker GC of const char* overload (#14821)
This commit is contained in:
1 parent
92d5e7b18c
commit
d97c23b8e3
5 files changed
+8
-6
No files matched your search
@@ -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