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

[BUGFIX & new example]: add new example and BUGFIX for __AVR__ for function DS3231::setEpoch() #66

Merged
merged 2 commits into from
Sep 5, 2022

Conversation

hasenradball
Copy link
Contributor

as discussed in PR #65.

@hasenradball hasenradball changed the title [new example]: add new example for function setEpoch() [new example]: add new example and BUGFIX for __AVR__ for function DS3231::setEpoch() Aug 16, 2022
@hasenradball hasenradball changed the title [new example]: add new example and BUGFIX for __AVR__ for function DS3231::setEpoch() [BUGFIX & new example]: add new example and BUGFIX for __AVR__ for function DS3231::setEpoch() Aug 19, 2022
@IowaDave
Copy link
Collaborator

IowaDave commented Sep 5, 2022

Resuming work on this library as of Sept 5 2022. Intend to merge this PR later today after testing the bugfix and the new example on various Arduino platforms.

Copy link
Collaborator

@IowaDave IowaDave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These proposed changes test correctly for both AVR (ATmega328P on a Nano) and ESP8266 (Lolin Wemos D1 mini clone). After setting the clock mode to 12-hour and giving the value 1659875100 for epoch, the fixed code loaded the DS3231 with correct date and time values for Aug 07 2022 12:25:00 P.M.

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

Successfully merging this pull request may close these issues.

2 participants