Bluetooth: Mesh: fix SRPL clearing
If len=0 then `primary` address should be cleared. Signed-off-by: Krzysztof Kopyściński <krzysztof.kopyscinski@codecoup.pl>
This commit is contained in:
parent
38c925308b
commit
61cf1bb9e4
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ static int item_clear(struct bt_mesh_model *mod,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
for (int i = 0; i < len; i++) {
|
||||
for (int i = 0; i < len || i == 0; i++) {
|
||||
bt_mesh_srpl_entry_clear(primary + i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue