You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2020/01/25 23:32:54 UTC

[mynewt-core] branch master updated: Fixes the SHELL_CMD_HELP_ definition when SHELL_CMD_HELP is 0 (#2166)

This is an automated email from the ASF dual-hosted git repository.

vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 7624a30  Fixes the SHELL_CMD_HELP_ definition when SHELL_CMD_HELP is 0 (#2166)
7624a30 is described below

commit 7624a30c1d56b7f9ee807b95a4668a71c00f54d9
Author: jipanienko <60...@users.noreply.github.com>
AuthorDate: Sun Jan 26 00:32:43 2020 +0100

    Fixes the SHELL_CMD_HELP_ definition when SHELL_CMD_HELP is 0 (#2166)
---
 sys/shell/include/shell/shell.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/shell/include/shell/shell.h b/sys/shell/include/shell/shell.h
index 62bf04b..efb56be 100644
--- a/sys/shell/include/shell/shell.h
+++ b/sys/shell/include/shell/shell.h
@@ -88,7 +88,7 @@ struct shell_module {
 #if MYNEWT_VAL(SHELL_CMD_HELP)
 #define SHELL_HELP_(help_) (help_)
 #else
-#define SHELL_HELP_(help_)
+#define SHELL_HELP_(help_) NULL
 #endif
 
 /**