export test
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of Int_Demo_09May2017_Suhasini_HRavg_Nikita_ili9341 by
Diff: sdcard.cpp
- Revision:
- 27:907f8ce0025e
- Parent:
- 26:53ff13a164f3
- Child:
- 31:37d3ae1fa1eb
diff -r 53ff13a164f3 -r 907f8ce0025e sdcard.cpp --- a/sdcard.cpp Wed Jul 05 15:36:58 2017 +0000 +++ b/sdcard.cpp Sat Jul 08 04:19:45 2017 +0000 @@ -127,7 +127,7 @@ } - void sd_open_read(int32_t pid) // opening the file for read +uint8_t sd_open_read(int32_t pid) // opening the file for read // CHNAGED to return value { char buffer1[32]; @@ -136,11 +136,13 @@ if (fp==NULL) { snd.printf("no"); + return 0; } else { snd.printf("yes"); + return 1; } }