mirror of https://github.com/ARMmbed/mbed-os.git
fix read_result always false
read_result always false when read file successpull/860/head
parent
ebc51cd52c
commit
466223a617
|
|
@ -86,6 +86,7 @@ int main()
|
|||
printf("SD: Reading data ... ");
|
||||
FILE *f = fopen(sd_file_path, "r");
|
||||
if (f) {
|
||||
read_result = true;
|
||||
for (int i = 0; i < DATA_SIZE; i++) {
|
||||
uint8_t data = fgetc(f);
|
||||
if (data != data_written[i]) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue