Skip to content

Commit

Permalink
Bluetooth: Mesh: Return immediately if labels not supported
Browse files Browse the repository at this point in the history
This avoid unnecessary triggering of settings work.

Signed-off-by: Pavel Vasilyev <[email protected]>
  • Loading branch information
PavelVPV authored and carlescufi committed Nov 28, 2023
1 parent 362924a commit 161aadd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subsys/bluetooth/mesh/va.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ void bt_mesh_va_clear(void)
{
int i;

if (CONFIG_BT_MESH_LABEL_COUNT == 0) {
return;
}

for (i = 0; i < ARRAY_SIZE(virtual_addrs); i++) {
if (virtual_addrs[i].ref) {
virtual_addrs[i].ref = 0U;
Expand Down

0 comments on commit 161aadd

Please sign in to comment.