aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-02 00:10:54 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-02 00:10:54 +0200
commit1a7fb274158f8a0e279aef26206a65fefac8c4c3 (patch)
tree0658810479231e339db39795f8782aa53fc939dd /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parent6488158b9fd003d690eb015cf9a644112a363f71 (diff)
parent2c0f48e170634b93daa75abda4e246e85ffed519 (diff)
downloadTango-1a7fb274158f8a0e279aef26206a65fefac8c4c3.tar.gz
Tango-1a7fb274158f8a0e279aef26206a65fefac8c4c3.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index 1ba656657..3b5ba176d 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -717,7 +717,7 @@ FRESULT FileWrite(void * buffer, uint16_t size,char *path, uint32_t timeout)
return FR_TIMEOUT;
}
- Fresult = f_open(FileHandle,path,FA_WRITE | FA_OPEN_ALWAYS);
+ Fresult = f_open(FileHandle,path,FA_WRITE | FA_OPEN_ALWAYS|FA_CREATE_ALWAYS);
if (Fresult == FR_OK)
{
Fresult = f_write(FileHandle,buffer,size,&Bytes );