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 SX1276_GPS by
Diff: Modules/DateModule.cpp
- Revision:
- 11:96146db429de
- Parent:
- 10:3fcab08717fc
- Child:
- 12:0fea8ebe6c1a
--- a/Modules/DateModule.cpp Sun Aug 10 12:34:44 2014 +0000
+++ b/Modules/DateModule.cpp Sun Aug 10 15:45:03 2014 +0000
@@ -17,7 +17,31 @@
DateModule::~DateModule()
{
}
+
+void DateModule::change
+(
+ int in_nIndexX,
+ int in_nCursorY,
+ bool in_bUp
+)
+{
+ tm sTM;
+ // to get the current time information
+ if (!m_cRTclock.getTime(sTM)) GetTime(sTM);
+ bool bTwelveHour = m_cRTclock.isTwelveHour();
+
+#if 0
+ switch (in_nIndexX)
+ {
+ case 0: m_nTemp += (in_bUp ? 1 : -1) * 10; break;
+ case 1: m_nTemp += (in_bUp ? 1 : -1); break;
+ }
+#endif
+
+ if (!m_cRTclock.setTime(sTM,bTwelveHour)) SetTime(sTM);
+}
+
int DateModule::setCursor
(
int in_nIndex,
