CaryCoders / Mbed 2 deprecated SX1276_GPS

Dependencies:   SX1276Lib AdaFruit_RGBLCD MCP23017 mbed

Fork of AdaFruit_RGBLCD by Justin Howard

Revision:
16:9e1edf28393f
Parent:
15:d1eaddb363be
Child:
18:fae7e61ea160
--- a/Modules/TimeModule.cpp	Tue Aug 12 04:25:08 2014 +0000
+++ b/Modules/TimeModule.cpp	Tue Aug 12 04:28:23 2014 +0000
@@ -134,7 +134,8 @@
     // if refreshing - only update if there's a change
     if (in_bRefresh)
     {        
-        if (0 == ::memcmp(&sTM,&m_sLastTM,sizeof(sTM))) return;        
+        // Check for change based on second (rest is irrelevant)
+        if (sTM.tm_sec == m_sLastTM.tm_sec) return;
     }
     
     // Ensure internal struct has new TM data