-->
Page 2 of 3

Re: Adjust DS3231 with NTP request

PostPosted: Fri Dec 25, 2015 2:05 pm
by hugch
Thanks for your reply. Could you post your code?
I'm not sure, but i think there is one specific bit which have to be set to high while setting the current time.
But i can't check it this year. Sorry.

Re: Adjust DS3231 with NTP request

PostPosted: Wed Dec 30, 2015 4:54 am
by bobcroft
Kalle, Thanks for your reply. I did manage to sort out the problem using a different library with update method. I'll upload the code later if I can figure out how to do it. I have never uploaded code before.

Bob

Re: Adjust DS3231 with NTP request

PostPosted: Fri Dec 16, 2016 11:58 am
by Pioterk
I have just tested the NTP Adjust library. I found that it does not handle day of week properly - it has "0" hardcoded for wday. In order to fix it you will need to go to Sodaq_DS3231.cpp and in line 100 change wday=0 to

wday = (days+4) % 7;

it is the line with comment "// FIXME This is not properly initialized"

Re: Adjust DS3231 with NTP request

PostPosted: Sun Mar 26, 2017 1:57 pm
by FWalker76
Regards, the sketch is not accessible, would you be so kind to retrieve it? Thank you