DS3231 External RTC I2C
Fork of DS3231 by
Revision 5:6fab75b89838, committed 2015-11-16
- Comitter:
- vart
- Date:
- Mon Nov 16 17:21:12 2015 +0000
- Parent:
- 4:b58079746c25
- Commit message:
- fixed bug in getTime func (hour extracting)
Changed in this revision
DS3231.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DS3231.cpp Thu Nov 05 16:54:52 2015 +0000 +++ b/DS3231.cpp Mon Nov 16 17:21:12 2015 +0000 @@ -50,7 +50,7 @@ second = bcdToDec(data[0]); minute = bcdToDec(data[1]); - tempBuffer = bcdToDec(data[2]); + tempBuffer = data[2]; h12 = tempBuffer & 0x40; if (h12) {