Skip to content

Commit 262f54e

Browse files
authored
Merge pull request #4853 from DavidLin1577/master
[examples/test]update rtc_test.c
2 parents b3fa063 + bfce90a commit 262f54e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/test/rtc_test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ int rtc_test(void)
2020

2121
rt_kprintf("[RTC Test]RTC Test Start...\n");
2222
rt_thread_delay(RT_TICK_PER_SECOND);
23-
rt_kprintf("[RTC Test]Set RTC 2017-04-01 12:30:46\n\n");
23+
rt_kprintf("[RTC Test]Set RTC 2017-04-01 12:30:46\n");
2424
rt_thread_delay(RT_TICK_PER_SECOND);
2525

2626
ret = set_date(2017, 4, 1);
@@ -45,7 +45,7 @@ int rtc_test(void)
4545
{
4646
rt_kprintf("[RTC Test]Read RTC Date and Time: ");
4747
now = time(RT_NULL);
48-
rt_kprintf("%s", ctime(&now));
48+
rt_kprintf("%s\n", ctime(&now));
4949

5050
rt_thread_delay(RT_TICK_PER_SECOND);
5151
}
@@ -56,6 +56,6 @@ int rtc_test(void)
5656
}
5757
#ifdef RT_USING_FINSH
5858
#include <finsh.h>
59-
FINSH_FUNCTION_EXPORT(rtc_test, rtc drive test. e.g: rtc_test());
60-
MSH_CMD_EXPORT(rtc_test, rtc drive test. e.g: rtc_test());
59+
FINSH_FUNCTION_EXPORT(rtc_test, rtc driver test. e.g: rtc_test());
60+
MSH_CMD_EXPORT(rtc_test, rtc driver test. e.g: rtc_test());
6161
#endif

0 commit comments

Comments
 (0)