diff options
author | Damien George <damien.p.george@gmail.com> | 2019-03-07 15:03:09 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-03-07 15:03:09 +1100 |
commit | 350dbb89e667ecee2dbe891793d08d2608f64853 (patch) | |
tree | 53847e5567a381e87c97e5a6a71d3093b1a94d60 /lib | |
parent | 62483bb957f5882e550e059d577718f347f0cba4 (diff) | |
download | micropython-350dbb89e667ecee2dbe891793d08d2608f64853.tar.gz micropython-350dbb89e667ecee2dbe891793d08d2608f64853.zip |
lib/oofatfs: Update oofatfs library to fix issue with logic not.
From https://github.com/micropython/oofatfs, branch work-R0.13c,
commit 3b4ee5a646af2769b3dddfe17d5d866233c1e45b.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oofatfs/ff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oofatfs/ff.c b/lib/oofatfs/ff.c index c7c79a1dd6..0c9d04fe74 100644 --- a/lib/oofatfs/ff.c +++ b/lib/oofatfs/ff.c @@ -3356,7 +3356,7 @@ static FRESULT validate ( /* Returns FR_OK or FR_INVALID_OBJECT */ res = FR_TIMEOUT; } #else - if (disk_ioctl(obj->fs->drv, IOCTL_STATUS, &stat) == RES_OK && (!stat & STA_NOINIT)) { /* Test if the phsical drive is kept initialized */ + if (disk_ioctl(obj->fs->drv, IOCTL_STATUS, &stat) == RES_OK && !(stat & STA_NOINIT)) { /* Test if the phsical drive is kept initialized */ res = FR_OK; } #endif |