aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-12-10 08:44:23 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-12-10 08:44:23 +0200
commit322073a52f4afc5c09903a92dd1c12bd111cd040 (patch)
tree8c7da6dc858ba4c818813c5eee146d21d49e3122 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parent90a01b662322c7e52aa242ae23a0ee33e61b9380 (diff)
parent8cf2490a30fd21959cea4baa0afc9cdced434593 (diff)
downloadTango-322073a52f4afc5c09903a92dd1c12bd111cd040.tar.gz
Tango-322073a52f4afc5c09903a92dd1c12bd111cd040.zip
merge
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c')
-rw-r--r--Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index f3d42b01a..a59a14dcf 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -794,8 +794,11 @@ FRESULT FileWrite(void * buffer, uint16_t size,char *path, uint32_t timeout)
{
LOG_ERROR (Fresult,"fwrite error");
}
- //LOG_ERROR (Bytes,"f_write ok no of bytes");
- Report("f_write ok no of bytes", __FILE__, __LINE__, Bytes, RpWarning, (int)size, 0);
+ else
+ {
+ //LOG_ERROR (Bytes,"f_write ok no of bytes");
+ Report("f_write ok no of bytes", __FILE__, __LINE__, Bytes, RpWarning, (int)size, 0);
+ }
f_close(FileHandle);
}
else
@@ -875,12 +878,14 @@ FRESULT FileRead(char *path, uint32_t *Size, void **Buffer)
}
else
{
- LOG_ERROR (Fresult,"malloc error");
+ Report("malloc error", __FILE__, __LINE__, Fresult, RpWarning, (int)fno->fsize, 0);
+ Fresult = FR_DENIED;
}
}
else
{
- LOG_ERROR (Fresult,"f_stat error");
+ Report("f_stat error", __FILE__, __LINE__, Fresult, RpWarning, (int)0, 0);
+ Fresult = FR_DENIED;
}
my_free(fno);
return Fresult;