Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[drivers][rtc] fix rtc assert #9804

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有看懂 麻烦增加一些解释 这里为什么删除了这行


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
Loading