Initial Publish Leaning GPS/SDCARD
Dependencies: FileManager GPSGms6 SDFileSystem mbed
Fork of 2545_SD_Card by
Diff: main.cpp
- Revision:
- 7:ffaa90a12f00
- Parent:
- 6:a05ec997c496
- Child:
- 8:8d26ce37febc
--- a/main.cpp Mon May 09 09:31:44 2016 +0000 +++ b/main.cpp Mon May 09 09:51:08 2016 +0000 @@ -27,6 +27,9 @@ logGPSData( gps.latestGPRMC().date, gps.latestGPRMC().time); serial.printf("\r\n#### Restart Timer #####"); + + time_t seconds = time(NULL); + printf("Time as seconds since January 1, 1970 = %d\n", seconds); t1.attach(&t1out,gps_interval); } @@ -53,6 +56,8 @@ serial.printf("\n End of SD Card Initialization "); gps.start_GPS(); t1.attach(&t1out,gps_interval); + + set_time(1256729737); // Set RTC time to Wed, 28 Oct 2009 11:35:37 while(1); }