fix(ble_mesh): Miscellaneous update

This commit is contained in:
luoxu
2024-12-09 16:29:14 +08:00
parent 8059b611c3
commit 7e41682eb3
2 changed files with 10 additions and 2 deletions

View File

@@ -27,7 +27,12 @@
#else
#define UNPROVISIONED_INTERVAL K_SECONDS(5)
#endif
#if CONFIG_BLE_MESH_BQB_TEST
#define PROVISIONED_INTERVAL K_SECONDS(3)
#else
#define PROVISIONED_INTERVAL K_SECONDS(10)
#endif
#define BEACON_TYPE_UNPROVISIONED 0x00
#define BEACON_TYPE_SECURE 0x01

View File

@@ -1174,7 +1174,7 @@ static struct label *va_find(const uint8_t *label_uuid,
return match;
}
static uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
{
struct label *update = NULL, *free_slot = NULL;
@@ -1182,6 +1182,9 @@ static uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
if (update) {
update->ref++;
va_store(update);
if (addr) {
*addr = update->addr;
}
return STATUS_SUCCESS;
}
@@ -1201,7 +1204,7 @@ static uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
return STATUS_SUCCESS;
}
static uint8_t va_del(uint8_t *label_uuid, uint16_t *addr)
uint8_t va_del(uint8_t *label_uuid, uint16_t *addr)
{
struct label *update = NULL;