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 rtc_class by
Diff: DateString.cpp
- Revision:
- 11:83c6939656e5
- Parent:
- 8:54a6f83a2339
--- a/DateString.cpp Thu Apr 23 10:44:24 2015 +0000
+++ b/DateString.cpp Thu Apr 30 10:54:02 2015 +0000
@@ -1,20 +1,11 @@
#include "DateString.h"
#include "RTC8563.h"
-// https://developer.mbed.org/teams/HIMBED_3AHELI/code/rtc_func/wiki/Klasse-DateString-von-Date-ableiten
-
-// 2. Methode ueberschreiben
uint8_t DateString::GetDay()
{
- //uint8_t day = rtc_read(DAYS);
- //return bcdToUint(day & 0x3F);
-
- uint8_t day = Date::GetDay(); // Aufruf der GetDay-Methode aus Basisklasse Date mit Scope-Operator
- // 3. Erweitern von Methoden der Basisklasse
+ uint8_t day = Date::GetDay();
day = day-5;
return day;
}
-
-// 4. Definieren neuer Methoden
uint8_t DateString::GetNextDay()
{
uint8_t day = GetDay();
