Bluetooth: Mesh: Redefine callback registration
There is a problem with the previous method, that is, we use the same label(bt_mesh_subnet_cb_subnet_evt) and put it in the same section, which is not friendly for debugging. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
9ff6282089
commit
4a8a1577ef
6 changed files with 19 additions and 11 deletions
|
@ -602,7 +602,9 @@ static void subnet_evt(struct bt_mesh_subnet *sub, enum bt_mesh_key_evt evt)
|
|||
}
|
||||
}
|
||||
|
||||
BT_MESH_SUBNET_CB_DEFINE(subnet_evt);
|
||||
BT_MESH_SUBNET_CB_DEFINE(app_keys) = {
|
||||
.evt_handler = subnet_evt,
|
||||
};
|
||||
|
||||
void bt_mesh_app_keys_reset(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue