Bug in DS1307 RTC Lib

ryhaberecht

New member
I could not find a better place to report this, so hopefully someone here knows where to report this.

There is a bug in DS1307RTC.cpp sometimes causing minutes to be > 60.

To fix this go to function 'DS1307RTC::read(tmElements_t &tm)' [line 54] and replace 'tm.Minute = bcd2dec(Wire.read() );' [line 75] with 'tm.Minute = bcd2dec(Wire.read() & 0x7f);' and 'tm.Minute = bcd2dec(Wire.receive() );' [line 84] with 'tm.Minute = bcd2dec(Wire.receive() & 0x7f);'

Regards
 
Back
Top