mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] michal-narajowski closed pull request #823: mesh: shell: Fix build when shell is disabled
Date Thu, 01 Jan 1970 00:00:00 GMT
michal-narajowski closed pull request #823: mesh: shell: Fix build when shell is disabled
URL: https://github.com/apache/mynewt-core/pull/823
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/net/nimble/host/mesh/src/shell.c b/net/nimble/host/mesh/src/shell.c
index 686c12ac2..668ec38cb 100644
--- a/net/nimble/host/mesh/src/shell.c
+++ b/net/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
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message