mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
fix(ble_mesh): Miscellaneous update
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user