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: MCP23017 TCS3472_I2C WattBob_TextLCD mbed-rtos mbed
Diff: mbedStorage.h
- Revision:
- 20:6de191ac7ff3
- Parent:
- 12:814a8fdbb6f7
- Child:
- 23:f9e7e64784be
--- a/mbedStorage.h Tue Nov 25 12:06:26 2014 +0000
+++ b/mbedStorage.h Tue Nov 25 12:59:11 2014 +0000
@@ -23,7 +23,7 @@
int readFile(int index){
FILE* file = fopen ("/local/datafile.txt","r"); // open file for reading
- int read_var;
+ int read_var = 0;
for(int i = 0; i <= index; i++){
read_var = fgetc(file); // read data value
}
