Zanduino / MCP7940

Arduino Library to access the MCP7940M, MCP7940N and MCP7940x Real-Time chips
GNU General Public License v3.0
37 stars 22 forks source link

Alarm problem #10

Closed logicaprogrammabile closed 6 years ago

logicaprogrammabile commented 6 years ago

Hi setting an alarm for the next day, this is not generated when alarmTypes is set to matchAll. I checked the code and it seems that the problem is in the setAlarm function because the MCP7940_RTCWKDAY is not set for the next day but remains set at the previous day.

thanks

SV-Zanshin commented 6 years ago

Let me look into that

SV-Zanshin commented 6 years ago

The Weekday wasn't being updated, as you had surmised. Corrected that so the weekday is always set depending upon the Date value.