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
|
@ -41,6 +41,7 @@ LOG_MODULE_REGISTER(bt_mesh_beacon);
|
|||
#define PROV_XMIT BT_MESH_TRANSMIT(0, 20)
|
||||
|
||||
static struct k_work_delayable beacon_timer;
|
||||
#if defined(CONFIG_BT_MESH_PRIV_BEACONS)
|
||||
static struct {
|
||||
/**
|
||||
* Identifier for the current Private beacon random-value.
|
||||
|
@ -54,6 +55,7 @@ static struct {
|
|||
uint8_t val[13];
|
||||
uint64_t timestamp;
|
||||
} priv_random;
|
||||
#endif
|
||||
|
||||
struct beacon_params {
|
||||
bool private;
|
||||
|
|
Loading…
Reference in a new issue