Skip to content

Commit dffe78b

Browse files
Johan Hedbergcarlescufi
authored andcommitted
samples: bluetooth/mesh_demo: Fix using internal API
Use K_SEM_DEFINE() instead of the internal _K_SEM_INITIALIZER() API. Signed-off-by: Johan Hedberg <[email protected]>
1 parent 5a56ee5 commit dffe78b

File tree

1 file changed

+1
-1
lines changed
  • samples/bluetooth/mesh_demo/src

1 file changed

+1
-1
lines changed

samples/bluetooth/mesh_demo/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ u16_t board_set_target(void)
267267
return target;
268268
}
269269

270-
static struct k_sem tune_sem = _K_SEM_INITIALIZER(tune_sem, 0, 1);
270+
static K_SEM_DEFINE(tune_sem, 0, 1);
271271
static const char *tune_str;
272272

273273
void board_play(const char *str)

0 commit comments

Comments
 (0)