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 980c92484528ecba531961218f2453e19741b174 Author: Christopher Collins <[email protected]> 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 [email protected].
