mirror of
https://github.com/esphome/esphome.git
synced 2026-02-20 16:35:37 -07:00
Merge branch 'name_with_suffix_ble' into integration
This commit is contained in:
@@ -289,11 +289,10 @@ bool ESP32BLE::ble_setup_() {
|
||||
// Keep first 13 chars and last 7 chars (MAC suffix), remove middle
|
||||
memcpy(name_buffer, app_name.c_str(), 13);
|
||||
memcpy(name_buffer + 13, app_name.c_str() + name_len - 7, 7);
|
||||
name_buffer[20] = '\0';
|
||||
} else {
|
||||
memcpy(name_buffer, app_name.c_str(), 20);
|
||||
name_buffer[20] = '\0';
|
||||
}
|
||||
name_buffer[20] = '\0';
|
||||
} else {
|
||||
memcpy(name_buffer, app_name.c_str(), name_len + 1); // Include null terminator
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user