From ab815f79aa98f0895cb94404a2def34ead3070df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Narajowski?= Date: Tue, 20 Feb 2018 15:08:07 +0100 Subject: [PATCH] mesh: shell: Fix build when shell is disabled X-Original-Commit: 5ed429bff2e761adb6d330610ef6e1a6c468872a --- nimble/host/mesh/src/shell.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nimble/host/mesh/src/shell.c b/nimble/host/mesh/src/shell.c index 686c12ac2..668ec38cb 100644 --- a/nimble/host/mesh/src/shell.c +++ b/nimble/host/mesh/src/shell.c @@ -2262,9 +2262,7 @@ static void bt_mesh_shell_task_init(void) void ble_mesh_shell_init(void) { -#if !(MYNEWT_VAL(BLE_MESH_SHELL)) - return; -#endif +#if (MYNEWT_VAL(BLE_MESH_SHELL)) /* Initialize health pub message */ health_pub_init(); @@ -2274,4 +2272,5 @@ void ble_mesh_shell_init(void) bt_mesh_shell_task_init(); shell_evq_set(&mesh_shell_queue); shell_register("mesh", mesh_commands); +#endif }