![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my programm rtc_class with functions in Date.cpp
Fork of rtc_func by
Diff: Date.cpp
- Revision:
- 3:75f5352b387d
- Parent:
- 2:ce174a86d215
diff -r ce174a86d215 -r 75f5352b387d Date.cpp --- a/Date.cpp Thu Apr 23 09:42:34 2015 +0000 +++ b/Date.cpp Thu Apr 30 10:53:00 2015 +0000 @@ -25,7 +25,7 @@ uint8_t year = rtc_read(YEARS); return bcdToUint(year & 0x3F); } -uint8_t Date::GetWEEK() +uint8_t Date::GetWeek() { uint8_t week = rtc_read(WEEKDAYS); return bcdToUint(week & 0x07);