30-10-2018, 19:33
Thanks for the help.
Last night I tried a similar procedure, but forcing the NPT updates (which also set the RTC clock) at each 10 secs, however I couldn't reproduce the problem, however I feel that the problem is there somewhere.
The most strange to me is that the functions to sync of the RTC and system time with NTP are part of the code since long time, and they are working. Something is messing with the RTC, which by turn will incorrectly set the system time, possibly when he syncprovider function runs (this function sync the system time with the RTC time every hour, and exists for the case the weather station doesn't have Internet connection). This is done this way since first software versions, without any problem.
So from where the bug was came? and where is it?
Tonight I will return to the bug hunted.
Last night I tried a similar procedure, but forcing the NPT updates (which also set the RTC clock) at each 10 secs, however I couldn't reproduce the problem, however I feel that the problem is there somewhere.
The most strange to me is that the functions to sync of the RTC and system time with NTP are part of the code since long time, and they are working. Something is messing with the RTC, which by turn will incorrectly set the system time, possibly when he syncprovider function runs (this function sync the system time with the RTC time every hour, and exists for the case the weather station doesn't have Internet connection). This is done this way since first software versions, without any problem.
So from where the bug was came? and where is it?
Tonight I will return to the bug hunted.

