Bluetooth: Mesh: Fix printing UUID log message
CONFIG_BT_MESH_PROV_DEVICE_LOG_LEVEL_INF may not be present while CONFIG_BT_MESH_PROV_DEVICE_LOG_LEVEL is always present. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
ae6c856128
commit
21b5d423e8
1 changed files with 3 additions and 1 deletions
|
@ -670,12 +670,14 @@ int bt_mesh_prov_enable(bt_mesh_prov_bearer_t bearers)
|
||||||
return -EALREADY;
|
return -EALREADY;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_BT_MESH_PROV_DEVICE_LOG_LEVEL_INF)) {
|
#if IS_ENABLED(CONFIG_BT_MESH_PROV_DEVICE_LOG_LEVEL)
|
||||||
|
if (CONFIG_BT_MESH_PROV_DEVICE_LOG_LEVEL > 2) {
|
||||||
struct bt_uuid_128 uuid = { .uuid = { BT_UUID_TYPE_128 } };
|
struct bt_uuid_128 uuid = { .uuid = { BT_UUID_TYPE_128 } };
|
||||||
|
|
||||||
memcpy(uuid.val, bt_mesh_prov->uuid, 16);
|
memcpy(uuid.val, bt_mesh_prov->uuid, 16);
|
||||||
LOG_INF("Device UUID: %s", bt_uuid_str(&uuid.uuid));
|
LOG_INF("Device UUID: %s", bt_uuid_str(&uuid.uuid));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_BT_MESH_PB_ADV) &&
|
if (IS_ENABLED(CONFIG_BT_MESH_PB_ADV) &&
|
||||||
(bearers & BT_MESH_PROV_ADV)) {
|
(bearers & BT_MESH_PROV_ADV)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue