NorthernWidget / DS3231

Communicates between Arduino-programmed AVR and Maxim DS3231 RTC: splice of Ayars' (http://hacks.ayars.org/2011/04/ds3231-real-time-clock.html) and Jeelabs/Ladyada's (https://github.com/adafruit/RTClib) libraries
The Unlicense
183 stars 81 forks source link

OSF flag needs independent reset function. #90

Open gerrygralton opened 1 year ago

gerrygralton commented 1 year ago

Current the OSF flag is reset in setSeconds() and no other function is provided to do it. This seems like a bit of an arbitrary choice and has led to some unpredictable errors occurring for me where this flag was being reset without me knowing how. The documentation says it makes good housekeeping sense and perhaps that's true but surely that should the user should at least be given the choice?

I propose that:

  1. Clear OSF flag functionality should be removed from setSeconds().
  2. Clear OSF flag function be defined independently to perform this role.