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.
Dependencies: SX1276Lib AdaFruit_RGBLCD MCP23017 mbed
Fork of AdaFruit_RGBLCD by
Diff: Modules/TimeModule.cpp
- Revision:
- 16:9e1edf28393f
- Parent:
- 15:d1eaddb363be
- Child:
- 18:fae7e61ea160
diff -r d1eaddb363be -r 9e1edf28393f Modules/TimeModule.cpp
--- 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
