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:
- 16:9e1edf28393f
- Parent:
- 15:d1eaddb363be
- Child:
- 25:24654d08a99a
diff -r d1eaddb363be -r 9e1edf28393f Modules/DateModule.cpp
--- 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
