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

setdateTime fails occasionally for seconds #5

Open
rrelande opened this issue Nov 27, 2023 · 2 comments
Open

setdateTime fails occasionally for seconds #5

rrelande opened this issue Nov 27, 2023 · 2 comments

Comments

@rrelande
Copy link

Thanks for a great library

Wire.begin(5, 4);
rtc.begin();
rtc.setDateTime(2019, 4, 1, 12, 33, 59);

taking the example code,
I've noticed that function will occasionally misread the example date and time. Instead of :59 (seconds) it will set :00 seconds, creating a 59 second gap. sometimes it will succeed though and write the right time.

This is just a random discovery hopefully no further issues.

@rrelande
Copy link
Author

The output on Serial is the below: (5s delay between set call and display call:
occasionally this:
Setting time RTC time to 2019 april 1 12:33:59
RTC time: 2019-4-1/12:33:0

Occasionally this:
Setting time RTC time to 2019 april 1 12:33:59
RTC time: 2019-4-1/12:34:4

@rrelande
Copy link
Author

after testing with other PCF8563 library, the same issue is applicable
it seems not related to this library only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant