mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 16:30:22 +00:00
[core] Replace Application name/friendly_name std::string with StringRef (#14532)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
07e51886f3
commit
74e4b69654
@@ -273,7 +273,7 @@ bool ESP32BLE::ble_setup_() {
|
||||
device_name = this->name_;
|
||||
}
|
||||
} else {
|
||||
const std::string &app_name = App.get_name();
|
||||
const auto &app_name = App.get_name();
|
||||
size_t name_len = app_name.length();
|
||||
if (name_len > 20) {
|
||||
if (App.is_name_add_mac_suffix_enabled()) {
|
||||
|
||||
Reference in New Issue
Block a user