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/DateModule.cpp
- Revision:
- 16:9e1edf28393f
- Parent:
- 15:d1eaddb363be
- Child:
- 25:24654d08a99a
--- a/Modules/DateModule.cpp Tue Aug 12 04:25:08 2014 +0000
+++ b/Modules/DateModule.cpp Tue Aug 12 04:28:23 2014 +0000
@@ -91,8 +91,9 @@
// 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 day (rest is irrelevant)
+ if (sTM.tm_mday == m_sLastTM.tm_mday) return;
}
// Ensure internal struct has new TM data
