change prefix as well

This commit is contained in:
Eve committed 2026-11-14 15:17:32 -05:00
1 parent de721bcb4b
commit 7416193a76
3 files changed
+14 -4

No files matched your search

+7 -1
View File
@@ -215,7 +215,13 @@ void setup() {
// add bluetooth interface
#if defined(BLE_PIN_CODE)
bluetooth_interface.begin(BLE_NAME_PREFIX, the_mesh.getNodePrefs()->ble_name[0] ? the_mesh.getNodePrefs()->ble_name : the_mesh.getNodePrefs()->node_name, the_mesh.getBLEPin());
char *prefix = BLE_NAME_PREFIX;
char *ble_name = the_mesh.getNodePrefs()->node_name;
if (the_mesh.getNodePrefs()->ble_name[0]) {
prefix = "";
ble_name = the_mesh.getNodePrefs()->ble_name;
}
bluetooth_interface.begin((const char *) prefix, ble_name, the_mesh.getBLEPin());
interface_manager.addInterface(InterfaceType::Bluetooth, &bluetooth_interface);
#endif