Skip to content

Commit fc1f318

Browse files
authored
Merge branch 'pr3671_test' into block-device
2 parents 3440cd7 + b2d4b3f commit fc1f318

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/filesystem/fat/FATFileSystem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "FATFileHandle.h"
3030
#include "FATDirHandle.h"
3131
#include "critical.h"
32+
//#include "ff.h"
3233
#include <errno.h>
3334

3435

@@ -273,6 +274,7 @@ FileHandle *FATFileSystem::open(const char* name, int flags) {
273274
if (res) {
274275
debug_if(FFS_DBG, "f_open('w') failed: %d\n", res);
275276
unlock();
277+
FATFileSystemSetErrno(res);
276278
return NULL;
277279
}
278280
if (flags & O_APPEND) {

0 commit comments

Comments
 (0)