aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-02-06 13:33:13 +0200
committerAvi Levkovich <avi@twine-s.com>2020-02-06 13:33:13 +0200
commit67f576c95d1eed3846611a008253bdba35b5767c (patch)
tree6a22cae752a282acd82ffd8b723436c603c86754 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parent917d08c0c4cfd95b6bf545a857361bcf0da5ea8a (diff)
parent063724aa818cc243b10a5c202e28b3cb49e6503f (diff)
downloadTango-67f576c95d1eed3846611a008253bdba35b5767c.tar.gz
Tango-67f576c95d1eed3846611a008253bdba35b5767c.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c')
-rw-r--r--Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index 8aabafd2e..873c89b7e 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -715,8 +715,10 @@ FRESULT FileWrite(void * buffer, uint16_t size,char *path, uint32_t timeout)
Fresult = f_write(FileHandle,buffer,size,&Bytes );
if(Fresult != FR_OK)
{
- LOG_ERROR (Fresult,"fread error");
+ 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);
f_close(FileHandle);
}
else
@@ -762,6 +764,7 @@ FRESULT FileRead(char *path, uint32_t *Size, void **Buffer)
{
*Buffer = buffer;
*Size = (uint32_t)fno->fsize;
+ Report("f_read ok no of bytes", __FILE__, __LINE__, Bytes, RpWarning, (int)fno->fsize, 0);
}
else
{