mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
ble_mesh: fix virtual addr wrong return value
Fixes missing return value on `va_del` Fixes wrong return value on `va_add`
This commit is contained in:
@ -1200,7 +1200,7 @@ static u8_t va_add(u8_t *label_uuid, u16_t *addr)
|
|||||||
if (update) {
|
if (update) {
|
||||||
update->ref++;
|
update->ref++;
|
||||||
va_store(update);
|
va_store(update);
|
||||||
return 0;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!free_slot) {
|
if (!free_slot) {
|
||||||
@ -1232,6 +1232,7 @@ static u8_t va_del(u8_t *label_uuid, u16_t *addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
va_store(update);
|
va_store(update);
|
||||||
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addr) {
|
if (addr) {
|
||||||
|
Reference in New Issue
Block a user