You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2018/02/08 23:39:13 UTC
[mynewt-mcumgr] 17/25: smp_svr - fix build error when CONFIG_MDLOG
unset.
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git
commit ee623278e7baba7557c9227d87e49a59f8fef0a1
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Tue Jan 30 12:07:25 2018 -0800
smp_svr - fix build error when CONFIG_MDLOG unset.
---
samples/smp_svr/zephyr/src/main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/samples/smp_svr/zephyr/src/main.c b/samples/smp_svr/zephyr/src/main.c
index 7f5e9e6..2906711 100644
--- a/samples/smp_svr/zephyr/src/main.c
+++ b/samples/smp_svr/zephyr/src/main.c
@@ -153,7 +153,10 @@ void main(void)
rc = init_fcb();
assert(rc == 0);
+
+#ifdef CONFIG_REBOOT_LOG
reboot_log_configure(&smp_svr_log);
+#endif
/* Register the built-in mcumgr command handlers. */
#ifdef CONFIG_MCUMGR_CMD_FS_MGMT
@@ -180,8 +183,10 @@ void main(void)
/* Initialize the Bluetooth mcumgr transport. */
smp_bt_register();
+#ifdef CONFIG_MDLOG
mdlog_register("smp_svr", &smp_svr_log, &mdlog_fcb_handler, &smp_svr_fcb,
MDLOG_LEVEL_DEBUG);
+#endif
/* The system work queue handles all incoming mcumgr requests. Let the
* main thread idle while the mcumgr server runs.
--
To stop receiving notification emails like this one, please contact
ccollins@apache.org.