Skip to content

Commit

Permalink
Fix open bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greiman committed May 16, 2020
1 parent d8fe044 commit 7d0261d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SdFat
version=1.1.3
version=1.1.4
license=MIT
author=Bill Greiman <[email protected]>
maintainer=Bill Greiman <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatFileLFN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ bool FatFile::open(FatFile* dirFile, fname_t* fname, oflag_t oflag) {
ldir_t* ldir;
size_t len = fname->len;

if (!dirFile || dirFile->isDir() || isOpen()) {
if (!dirFile || !dirFile->isDir() || isOpen()) {
DBG_FAIL_MACRO;
goto fail;
}
Expand Down

0 comments on commit 7d0261d

Please sign in to comment.