Skip to content

Issue in getYear and project link #1

@jessejay356

Description

@jessejay356
  1. The link in the source is to the wrong location, it leads to a 404

  2. Get year is wrong in the latest version.

It's currently

uint16_t RV8803::getYear() {
return BCDtoDEC(_time[TIME_YEAR] + 2000);
}

The issue is it's doing BCDtoDEC on the value AFTER adding 2000, and it should be after the BCDtoDEC call when that should happen... like the following.

uint16_t RV8803::getYear() {
return(BCDtoDEC(_time[TIME_YEAR]) + 2000);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions