Skip to content

Commit 7d0261d

Browse files
committed
Fix open bug
1 parent d8fe044 commit 7d0261d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SdFat
2-
version=1.1.3
2+
version=1.1.4
33
license=MIT
44
author=Bill Greiman <[email protected]>
55
maintainer=Bill Greiman <[email protected]>

src/FatLib/FatFileLFN.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ bool FatFile::open(FatFile* dirFile, fname_t* fname, oflag_t oflag) {
303303
ldir_t* ldir;
304304
size_t len = fname->len;
305305

306-
if (!dirFile || dirFile->isDir() || isOpen()) {
306+
if (!dirFile || !dirFile->isDir() || isOpen()) {
307307
DBG_FAIL_MACRO;
308308
goto fail;
309309
}

0 commit comments

Comments
 (0)