Bluetooth: Mesh: Don't compile priv_random if Priv Beacons not enabaled
This should fix unused variable issue when compiled with -Werror. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
19b0cb21be
commit
8799286990
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ LOG_MODULE_REGISTER(bt_mesh_beacon);
|
||||||
#define PROV_XMIT BT_MESH_TRANSMIT(0, 20)
|
#define PROV_XMIT BT_MESH_TRANSMIT(0, 20)
|
||||||
|
|
||||||
static struct k_work_delayable beacon_timer;
|
static struct k_work_delayable beacon_timer;
|
||||||
|
#if defined(CONFIG_BT_MESH_PRIV_BEACONS)
|
||||||
static struct {
|
static struct {
|
||||||
/**
|
/**
|
||||||
* Identifier for the current Private beacon random-value.
|
* Identifier for the current Private beacon random-value.
|
||||||
|
@ -54,6 +55,7 @@ static struct {
|
||||||
uint8_t val[13];
|
uint8_t val[13];
|
||||||
uint64_t timestamp;
|
uint64_t timestamp;
|
||||||
} priv_random;
|
} priv_random;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct beacon_params {
|
struct beacon_params {
|
||||||
bool private;
|
bool private;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue