mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 17:03:30 +08:00
Merge pull request #1349 from TanekLiang/rtc-warning
fixed warning when only enable finsh shel…
This commit is contained in:
commit
0e1ab3d54a
@ -247,7 +247,7 @@ FINSH_FUNCTION_EXPORT(list_date, show date and time.)
|
|||||||
FINSH_FUNCTION_EXPORT(set_date, set date. e.g: set_date(2010,2,28))
|
FINSH_FUNCTION_EXPORT(set_date, set date. e.g: set_date(2010,2,28))
|
||||||
FINSH_FUNCTION_EXPORT(set_time, set time. e.g: set_time(23,59,59))
|
FINSH_FUNCTION_EXPORT(set_time, set time. e.g: set_time(23,59,59))
|
||||||
|
|
||||||
#if defined(RT_USING_FINSH)
|
#if defined(RT_USING_FINSH) && defined(FINSH_USING_MSH)
|
||||||
static void date(uint8_t argc, char **argv)
|
static void date(uint8_t argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
@ -308,6 +308,6 @@ static void date(uint8_t argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
MSH_CMD_EXPORT(date, get date and time or set [year month day hour min sec]);
|
MSH_CMD_EXPORT(date, get date and time or set [year month day hour min sec]);
|
||||||
#endif /* defined(RT_USING_FINSH) */
|
#endif /* defined(RT_USING_FINSH) && defined(FINSH_USING_MSH) */
|
||||||
|
|
||||||
#endif /* RT_USING_FINSH */
|
#endif /* RT_USING_FINSH */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user