-
Notifications
You must be signed in to change notification settings - Fork 78
Incorrect hour rollovers on Adafruit Feather M0 board. #4
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
Comments
The register bit RTC.MODE2.CTRL.CLKREP is being set incorrectly. In 12 hour mode, the highest bit is used to specify AM/PM. If this is read as a 24 hour value, it results in all PM values having 16 added to them. |
@GabrielNotman is this resolved now that #3 has been merged? (In particular this line https://github.com/arduino-libraries/RTCZero/pull/3/files#diff-6ed0013c42219b7dc3d3d5d163434a8fR55) |
I haven't test the post merge version. |
@GabrielNotman yes, looks good to me. I tried the following initial time values with the
With @cavemoa could you please try the latest release ( |
Yes all seems good post merge to me. |
@cavemoa great! Thanks for verifying! |
Hi, have just started using your library on the adafruit Feather M0 board which has a SAMD21.
I get some strange behavior with the roll over of hours when I set the using the simplertc example:
12:00:00 rolls over to 28:00:00 !
28:59:59 then rolls over directly to 17:00:00
It then runs correctly for a few hours to 23:59:59 which rolls over to 24:00:00 and does not increment the day/date.
Another board user has confirmed they have the same behavior.
I'm guessing it must be chipsetup as I presume the issue doesn't arise on the Arduino Zero. Any thoughts?
Cheers Jon
The text was updated successfully, but these errors were encountered: