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

ab-b5ze-s3 months start from 1 not 0 #758

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 4, 2019

  1. ab-b5ze-s3 months start from 1 not 0

    As per the datasheet, the months register (08h) stores the current month coded in BCD format with a value range of 1 to 12. January is therefore allocated to value 1 and December is allocated to value 12 (or BCD 10010). When handling year wrapping, the check must be performed on constant 12 (should we be capturing anything greater to remain within the correct range?) and the months should be reset to 1 for January.
    joshld authored Dec 4, 2019
    Configuration menu
    Copy the full SHA
    e1d54a9 View commit details
    Browse the repository at this point in the history