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
Fork of el17ajf by
Diff: Prefs/Prefs.h
- Revision:
- 27:2ed9e3c9f4e9
- Parent:
- 21:62d2b5b73160
- Child:
- 28:e09b7ac11dea
--- a/Prefs/Prefs.h Thu Apr 04 18:39:45 2019 +0000
+++ b/Prefs/Prefs.h Fri Apr 05 17:16:59 2019 +0000
@@ -15,12 +15,15 @@
int getKey(Key key);
void resetAll();
static Prefs * getInstance();
+ static const int EMPTY = -1;
private:
Prefs();
~Prefs();
SDFileSystem * sd;
- FILE * file;
+ FILE * read_file;
static Prefs * instance;
+ static const int NUMBER_OF_PREFS = 8;
+ void createFile();
};
#endif
\ No newline at end of file
