Skip to content

Commit

Permalink
Merge pull request arduino-libraries#87 from MrHyrex/rtc-fix
Browse files Browse the repository at this point in the history
Update PCF8563T.cpp
  • Loading branch information
aentinger authored Jun 7, 2022
2 parents f8ca93d + 2d7d34f commit 155bb20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility/RTC/PCF8563T.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ uint8_t PCF8563TClass::getMonths() {
* @return byte with Day(s) value
*/
uint8_t PCF8563TClass::getDays() {
uint8_t days = readByte(PCF8563T_DAYS_REG);
uint8_t days = readByte(PCF8563T_DAYS_REG) & 0x3F;
return (days & 0x0F) + ((days >> 4)*10);
}

Expand Down

0 comments on commit 155bb20

Please sign in to comment.