diff options
| author | Wayne Lin <[email protected]> | 2021-07-12 18:17:25 +0800 |
|---|---|---|
| committer | Wayne Lin <[email protected]> | 2021-07-12 18:17:25 +0800 |
| commit | 735285360929c97d49ed51dbc41dfeec570a35b3 (patch) | |
| tree | 9c1b5303717e80442037fd43f4144ff67c86bc5c /examples/test | |
| parent | 978ea520d982ede86feee1f5f08b04bddd6efd1e (diff) | |
| parent | 19f1c82bc8355879d157805748b23e6dabed701d (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into nuvoton
Diffstat (limited to 'examples/test')
| -rw-r--r-- | examples/test/rtc_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/test/rtc_test.c b/examples/test/rtc_test.c index 4ed1349de4..79ea8450f9 100644 --- a/examples/test/rtc_test.c +++ b/examples/test/rtc_test.c @@ -20,7 +20,7 @@ int rtc_test(void) rt_kprintf("[RTC Test]RTC Test Start...\n"); rt_thread_delay(RT_TICK_PER_SECOND); - rt_kprintf("[RTC Test]Set RTC 2017-04-01 12:30:46\n\n"); + rt_kprintf("[RTC Test]Set RTC 2017-04-01 12:30:46\n"); rt_thread_delay(RT_TICK_PER_SECOND); ret = set_date(2017, 4, 1); @@ -45,7 +45,7 @@ int rtc_test(void) { rt_kprintf("[RTC Test]Read RTC Date and Time: "); now = time(RT_NULL); - rt_kprintf("%s", ctime(&now)); + rt_kprintf("%s\n", ctime(&now)); rt_thread_delay(RT_TICK_PER_SECOND); } @@ -56,6 +56,6 @@ int rtc_test(void) } #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(rtc_test, rtc drive test. e.g: rtc_test()); -MSH_CMD_EXPORT(rtc_test, rtc drive test. e.g: rtc_test()); +FINSH_FUNCTION_EXPORT(rtc_test, rtc driver test. e.g: rtc_test()); +MSH_CMD_EXPORT(rtc_test, rtc driver test. e.g: rtc_test()); #endif |
