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: mbed MODSERIAL FATFileSystem
Diff: ConfigFileIO/ConfigFileIO.cpp
- Revision:
- 86:ba3a118b0080
- Parent:
- 82:0981b9ada820
- Child:
- 87:6d95f853dab3
--- a/ConfigFileIO/ConfigFileIO.cpp Mon Feb 25 21:26:34 2019 +0000 +++ b/ConfigFileIO/ConfigFileIO.cpp Thu May 02 20:34:16 2019 +0000 @@ -53,6 +53,20 @@ xbee().printf("\n\rFile batt.txt successful written.\n\r"); } } +int ConfigFileIO::load_StartTime() { + ConfigFile cfg; + int count = 0; + if (!cfg.read("/local/time.txt")) { + error("File Read Error"); + } + char value[BUFSIZ]; + if (cfg.getValue("TimeStamp", &value[0] , sizeof(value))) { + // bce().setControllerP(atoi(value)); + mbedLogger().setLogTime(atol(value)); + count++; + } + return count; +} void ConfigFileIO::saveLogVersData(int logversion, int diagversion) { ConfigFile write_logvers_txt; //write to the config file