fix(ble_mesh): Fix compiling error when PB-ADV is disabled

Closes https://github.com/espressif/esp-idf/issues/13203
This commit is contained in:
Liu Linyan
2024-02-20 16:27:41 +08:00
parent 9605f9be3f
commit 2d25ef62d1
3 changed files with 14 additions and 8 deletions

View File

@@ -1311,13 +1311,13 @@ void bt_mesh_ext_prov_clear_tx(void *link, bool cancel)
uint8_t bt_mesh_ext_prov_node_next_xact_id(void *link)
{
#if CONFIG_BLE_MESH_NODE
#if CONFIG_BLE_MESH_NODE && CONFIG_BLE_MESH_PB_ADV
extern uint8_t node_next_xact_id(struct bt_mesh_prov_link *link);
return node_next_xact_id(link);
#else
assert(0);
return 0;
#endif /* CONFIG_BLE_MESH_NODE */
#endif /* CONFIG_BLE_MESH_NODE && CONFIG_BLE_MESH_PB_ADV */
}
void *bt_mesh_ext_prov_node_get_link(void)