diff options
| author | Bernard Xiong <[email protected]> | 2018-04-09 13:53:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-04-09 13:53:38 +0800 |
| commit | 0e1ab3d54a1989f88dc1c29efbdaeb0ccf3dc4d8 (patch) | |
| tree | f1ae995a33fffee1c43658cb4fa074784ac9ab88 /components | |
| parent | 585ef8ff52d52cd13bd868d5108d9e4d2c77d0ee (diff) | |
| parent | 2f5a9c37fa49dbe7fbdb7d67fa992b552cf0cf37 (diff) | |
Merge pull request #1349 from TanekLiang/rtc-warning
fixed warning when only enable finsh shel…
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/rtc/rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/rtc.c index f64a528ef0..48da802627 100644 --- a/components/drivers/rtc/rtc.c +++ b/components/drivers/rtc/rtc.c @@ -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_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) { 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]); -#endif /* defined(RT_USING_FINSH) */ +#endif /* defined(RT_USING_FINSH) && defined(FINSH_USING_MSH) */ #endif /* RT_USING_FINSH */ |
