ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

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