Dallas DS1307 real-time clock minimalistic driver
Dependents: testing_RTC_OneWire EMIRv2
Diff: DS1307.cpp
- Revision:
- 2:6d8d35a5b3f2
- Parent:
- 1:60383faa35a9
- Child:
- 3:c5018c71887f
--- a/DS1307.cpp Sun Apr 27 19:07:57 2014 +0000 +++ b/DS1307.cpp Mon Apr 28 09:23:06 2014 +0000 @@ -20,7 +20,6 @@ now.tm_sec = bcdToDecimal(buffer[0] & 0x7F); now.tm_min = bcdToDecimal(buffer[1]); now.tm_hour = bcdToDecimal(buffer[2] & 0x3F); - now.tm_wday = buffer[3]; now.tm_mday = bcdToDecimal(buffer[4]); now.tm_mon = bcdToDecimal(buffer[5]) - 1; now.tm_year = bcdToDecimal(buffer[6]) + 2000 - 1900;