apps/nshlib: Fix problem in last commit. CONFIG_BOARDCTL_FINALINIT=y is an insufficient condition for calling boardctl(BOARDIOC_FINALINIT, 0). Also need CONFIG_NSH_ARCHINIT=y.

This commit is contained in:
Gregory Nutt
2018-08-28 15:48:51 -06:00
parent 93f1c13b62
commit c4512f5ddf
3 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ int nsh_consolemain(int argc, char *argv[])
usbtrace_enable(TRACE_BITSET);
#endif
#ifdef CONFIG_BOARDCTL_FINALINIT
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_BOARDCTL_FINALINIT)
/* Perform architecture-specific final-initialization (if configured) */
(void)boardctl(BOARDIOC_FINALINIT, 0);