aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-03-01 09:15:06 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-03-01 09:15:06 +0200
commit95aae68e89693fb394d59d19b383571099b6d3d4 (patch)
tree76e2c34749e4597f6aa8266151b3a5a4f246704c /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
parentd02187bd55bc5c24780d567d9221d174b6ec65ce (diff)
downloadTango-95aae68e89693fb394d59d19b383571099b6d3d4.tar.gz
Tango-95aae68e89693fb394d59d19b383571099b6d3d4.zip
fix file handling. set the machine state to error while waiting to the cooler
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 );