CaryCoders / Mbed 2 deprecated demo_SX1276_standalone

Dependencies:   SX1276Lib mbed

Fork of SX1276_GPS by CaryCoders

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,