[jallib] r3241 committed - Corrected init() of rtc_ds1307 library (issue #164)

7 views
Skip to first unread message

jal...@googlecode.com

unread,
Apr 24, 2013, 2:42:22 PM4/24/13
to jal...@googlegroups.com
Revision: 3241
Author: robhamerling
Date: Wed Apr 24 11:42:06 2013
Log: Corrected init() of rtc_ds1307 library (issue #164)


http://code.google.com/p/jallib/source/detail?r=3241

Modified:
/trunk/include/external/rtc/rtc_ds1307.jal

Rob Hamerling

unread,
Apr 24, 2013, 3:08:23 PM4/24/13
to jal...@googlegroups.com


On 2013/04/24 20:42, jal...@googlecode.com wrote:

> Modified:
> /trunk/include/external/rtc/rtc_ds1307.jal


Although I have done the fix, validated the library and the samples
compile OK, I have no ds1307 on hand to test it. I hope somebody with
such an rtc chip is so kind to do a test and report the results (correct
or not).

The version of before this fix destroyed the seconds and hours values.
These should now be preserved.
Also: when the ds1307 was in 12-hours mode it should now continue in
24-hours mode and convert the hours correctly to 24 hour mode, esp. the
PM-hour values.

A similar correction will be applied to the rtc_ds1302 library (work in
progress).

Regards, Rob.


--
R. Hamerling, Netherlands --- http://www.robh.nl
Reply all
Reply to author
Forward
0 new messages