basic lightning detector with gps and sd card logging

Dependencies:   AS3935 AdafruitGPS SDFileSystem TSI mbed ConfigFile

Revision:
10:499140eb469b
Parent:
9:15c9bf86d908
Child:
12:7c58c7a6b25c
--- 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();