Allow NSH date command with no RTC. This command is useful without an RTC too. Also, this permits testing on the simulator which never has an RTC

This commit is contained in:
Gregory Nutt
2015-04-11 12:13:18 -06:00
parent c341e06e84
commit 23075e0b30
8 changed files with 25 additions and 21 deletions

View File

@@ -140,7 +140,7 @@ static const struct cmdmap_s g_cmdmap[] =
# endif
#endif
#if defined (CONFIG_RTC) && !defined(CONFIG_NSH_DISABLE_DATE)
#ifndef CONFIG_NSH_DISABLE_DATE
{ "date", cmd_date, 1, 3, "[-s \"MMM DD HH:MM:SS YYYY\"]" },
#endif