Skip to content

Commit e0b00b2

Browse files
committed
[examples/test]update rtc_test.c
1 parent 3e8de58 commit e0b00b2

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)