Zanduino/MCP7940

Weekday changes after deviceStart causing alarm to not work

Opened this issue · 0 comments

Expected Behavior

Actual Behavior

When the date and time is set using the Adjust() function, the weekday in the registry is sometimes not correct afterwards. For me this is mainly a problem because it causes the alarm to not work when using alarmType=0x7.

Steps to Reproduce the Problem

The problem only occurs in some chips. It seems some batches are more affected then others. This makes reproduction somewhat tricky. For issue 4 what I had to do to reproduce was:

  • Stop the oscillator
  • Set the day of the week to 4 or 5
  • Start the oscillator
  • Read the day of the week
  • The day of the week has changed

Specifications

  • Library Version: Current master
  • IDE Version:
  • Platform: esp-idf
  • Subsystem:
  • any other details needed to reproduce the problem