diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-02-05 14:40:28 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-02-05 14:40:28 +0200 |
| commit | e91fb8659ced78638983b0f534ac6dd8653ff305 (patch) | |
| tree | c9a003463017ef958738d96406f4ae4bd3389a96 /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | |
| parent | 97c1df6f802449daa37b259b8c440e474eaa4a28 (diff) | |
| parent | c57fd7e324a1ed129265cf3c22cbfab14b3a64dc (diff) | |
| download | Tango-e91fb8659ced78638983b0f534ac6dd8653ff305.tar.gz Tango-e91fb8659ced78638983b0f534ac6dd8653ff305.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | 5 |
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 { |
