Bluetooth: Mesh: Fix checking for bt_mesh_provision() error
There isn't much we can do if this fails, but at least log an error about it. Fixes #13855 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
f8e1dfc331
commit
0299db7303
1 changed files with 5 additions and 1 deletions
|
@ -1074,7 +1074,11 @@ static void prov_data(const u8_t *data)
|
|||
identity_enable = false;
|
||||
}
|
||||
|
||||
bt_mesh_provision(pdu, net_idx, flags, iv_index, addr, dev_key);
|
||||
err = bt_mesh_provision(pdu, net_idx, flags, iv_index, addr, dev_key);
|
||||
if (err) {
|
||||
BT_ERR("Failed to provision (err %d)", err);
|
||||
return;
|
||||
}
|
||||
|
||||
/* After PB-GATT provisioning we should start advertising
|
||||
* using Node Identity.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue