samples: mesh: nrf52: corrected conditional compilation

Corrected conditional compilation directives defined in
publisher.c

Signed-off-by: Vikrant More <vikrant8051@gmail.com>
This commit is contained in:
Vikrant More 2018-08-18 15:03:49 +05:30 committed by Johan Hedberg
commit 6858cb417d

View file

@ -18,7 +18,7 @@
static bool is_randomization_of_TIDs_done; static bool is_randomization_of_TIDs_done;
#if defined(ONOFF) #if (defined(ONOFF) || defined(ONOFF_TT))
static u8_t tid_onoff; static u8_t tid_onoff;
#elif defined(VND_MODEL_TEST) #elif defined(VND_MODEL_TEST)
static u8_t tid_vnd; static u8_t tid_vnd;
@ -28,7 +28,7 @@ static u8_t tid_level;
void randomize_publishers_TID(void) void randomize_publishers_TID(void)
{ {
#if defined(ONOFF) #if (defined(ONOFF) || defined(ONOFF_TT))
bt_rand(&tid_onoff, sizeof(tid_onoff)); bt_rand(&tid_onoff, sizeof(tid_onoff));
#elif defined(VND_MODEL_TEST) #elif defined(VND_MODEL_TEST)
bt_rand(&tid_vnd, sizeof(tid_vnd)); bt_rand(&tid_vnd, sizeof(tid_vnd));