apps/nshlib: Change the way SLCD is supported. Works better

This commit is contained in:
Alan Carvalho de Assis
2018-11-30 18:05:18 -06:00
committed by Gregory Nutt
parent 2b8685b63f
commit 368f14852e
3 changed files with 35 additions and 15 deletions

View File

@@ -293,15 +293,16 @@
#undef HAVE_SLCD_CONSOLE
/* Check if SLCD is configured as alternative console */
/* Check if SLCD is configured as console */
#if defined(CONFIG_SLCD) && defined(CONFIG_NSH_ALTCONDEV)
#if defined(CONFIG_SLCD) && defined(CONFIG_NSH_SLCDCONSOLE)
# define HAVE_SLCD_CONSOLE 1
# ifndef CONFIG_NSH_CONDEV
# define CONFIG_NSH_CONDEV "/dev/slcd0"
# ifndef CONFIG_NSH_SLCDCONDEV
# define CONFIG_NSH_SLCDCONDEV "/dev/slcd0"
# endif
#endif /* HAVE_SLCD_CONSOLE */
/* USB trace settings */