Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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) {
