-
Notifications
You must be signed in to change notification settings - Fork 60
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
新版本的 NTP 同步无法同步日期只能同步时间 #69
Comments
这个应该是底层的问题 RT-Thread/rt-thread#4627 |
能考虑给rt-thread master 提个pr吗 我对HAL库不太熟悉 |
我也不太熟悉,我有空的话看看。 |
Merged
已修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
涉及到这次改动:1e02f87
源文件377行设置date和time分别用了两次localtime. 新版删掉后导致NTP 同步无法同步日期只能同步时间。
单步调试发现,先进行set_time的情况下,set_time之后,日期被重置,时间保留。
我现在先设置日期,再设置时间,可以同步日期并且同步时间。
获取时间正确。
年月被重置成RTC原先的时间。
这个问题可能跟底层RTC驱动有关。
STM32L476
The text was updated successfully, but these errors were encountered: