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: AS3935 AdafruitGPS SDFileSystem TSI mbed ConfigFile
Revision 10:499140eb469b, committed 2015-07-01
- Comitter:
- ftagius
- Date:
- Wed Jul 01 19:03:20 2015 +0000
- Parent:
- 9:15c9bf86d908
- Child:
- 12:7c58c7a6b25c
- Commit message:
- fix typo in timezone conversion
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jul 01 14:00:03 2015 +0000
+++ b/main.cpp Wed Jul 01 19:03:20 2015 +0000
@@ -113,7 +113,7 @@
// write to the current log file
char time_str[32];
time_t seconds = time(NULL);
- seconds -= 14500; // 14400 = 60*60*4, kludgy way of setting est
+ seconds -= 14400; // 14400 = 60*60*4, kludgy way of setting edt
struct tm *tminfo = localtime(&seconds);
strftime(time_str, 32, "%m/%d/%Y,%T", tminfo);
fprintf(fp,"%s,%ld,",time_str,seconds);
@@ -277,7 +277,7 @@
if (plCfgFile)
delete plCfgFile;
- if (fp != NULL)
+ if (fp != NULL)
fclose(fp);
sd.unmount();