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

fix set_day method #9

Merged
merged 2 commits into from
Jul 17, 2023
Merged

fix set_day method #9

merged 2 commits into from
Jul 17, 2023

Conversation

kirbylife
Copy link
Contributor

The method receives in decimal the value to be set as the day of the month, but the ds3231 module expects it in bcd format.
Using the write_register_decimal method, can be written in the correct format.

The method receives in decimal the value to be set as the day of the month, but the ds3231 module expects it in bcd format.  
Using the 'write_register_decimal' method, can be written in the correct format.
@eldruin
Copy link
Owner

eldruin commented Apr 27, 2023

Nice find, thanks! There are a couple of warnings and a problem with the MSRV that have appeared and I need to fix beforehand. I will merge this afterwards.

@coveralls
Copy link

Coverage Status

coverage: 89.841%. remained the same when pulling 7f318d8 on kirbylife:fix-set-day-format into de0231b on eldruin:master.

@eldruin eldruin merged commit fd6a145 into eldruin:master Jul 17, 2023
21 checks passed
@eldruin
Copy link
Owner

eldruin commented Jul 17, 2023

I have published this in version 0.5.1.

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.

3 participants