mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge 4b7143e845
into 59274ae0d6
This commit is contained in:
commit
67c4a09600
@ -77,6 +77,10 @@ uint8_t bt_mesh_get_device_role(struct bt_mesh_model *model, bool srv_send)
|
|||||||
bt_mesh_client_user_data_t *client = NULL;
|
bt_mesh_client_user_data_t *client = NULL;
|
||||||
|
|
||||||
if (srv_send) {
|
if (srv_send) {
|
||||||
|
if (IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) && bt_mesh_is_provisioner_en()) {
|
||||||
|
BT_DBG("Message is sent by a provisioner(server) model");
|
||||||
|
return PROVISIONER;
|
||||||
|
}
|
||||||
BT_DBG("Message is sent by a server model");
|
BT_DBG("Message is sent by a server model");
|
||||||
return NODE;
|
return NODE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user