A simple .ini file interface.
Dependents: Smart-WiFly-WebServer SignalGenerator WattEye X10Svr
Revision 4:70042853d43b, committed 2014-03-16
- Comitter:
- WiredHome
- Date:
- Sun Mar 16 22:23:11 2014 +0000
- Parent:
- 3:64fcaf06b012
- Child:
- 5:bfeb0882bd82
- Commit message:
- use an OS wait if the mbed_rtos is in use (#ifdef RTOS_H).
Changed in this revision
| IniManager.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/IniManager.cpp Fri Jan 03 19:08:12 2014 +0000
+++ b/IniManager.cpp Sun Mar 16 22:23:11 2014 +0000
@@ -245,7 +245,11 @@
remove(bakFile); // remove an old .bak
Rename(iniFile, bakFile); // move the existing .ini to .bak
Rename(newFile, iniFile); // move the new .new to .ini
+ #ifdef RTOS_H
+ Thread::wait(1000);
+ #else
wait(1);
+ #endif
}
free(newFile);
free(bakFile);