Skip to content

Commit

Permalink
[drivers][rtc] fix rtc assert
Browse files Browse the repository at this point in the history
  • Loading branch information
kurisaW committed Dec 19, 2024
1 parent 6b24661 commit d53641f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/drivers/rtc/dev_soft_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@ static int rt_soft_rtc_init(void)

rt_device_register(&soft_rtc_dev, "rtc", RT_DEVICE_FLAG_RDWR);

source_device = &soft_rtc_dev;

init_ok = RT_TRUE;

return 0;
Expand Down Expand Up @@ -322,7 +320,7 @@ static void cmd_rtc_sync(int argc, char **argv)
rt_kprintf("local time: %.*s", 25, ctime(&now));
rt_kprintf("timestamps: %ld\n", (long)tv.tv_sec);
}
MSH_CMD_EXPORT_ALIAS(cmd_rtc_sync, rtc_sync, Update time by soft rtc);
MSH_CMD_EXPORT_ALIAS(cmd_rtc_sync, rtc_sync, Update time by rtc);
#endif

#endif /* RT_USING_SYSTEM_WORKQUEUE */
Expand Down

0 comments on commit d53641f

Please sign in to comment.