summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/test/fat/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/test/fat/main.c b/firmware/test/fat/main.c
index ca288322d3..418f7b3e61 100644
--- a/firmware/test/fat/main.c
+++ b/firmware/test/fat/main.c
@@ -96,7 +96,7 @@ int dbg_mkfile(char* name, int num)
int x=0;
bool stop = false;
- fd = open(name,O_WRONLY);
+ fd = creat(name,O_WRONLY);
if (fd<0) {
DEBUGF("Failed creating file\n");
return -1;