!154 pika_fatfs_v0.1.0_1666459453874

Merge pull request !154 from pikabot/pika_fatfs_v0.1.0_1666459453874
This commit is contained in:
李昂 2022-10-22 17:25:20 +00:00 committed by Gitee
commit 5114feb1fe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5 additions and 4 deletions

View File

@ -104,10 +104,8 @@ int __fmodeflags(const char* mode) {
flags = FA_READ;
else
flags = FA_WRITE;
if (*mode != 'r')
flags |= FA_CREATE_NEW;
if (*mode == 'w')
flags |= FA_CREATE_ALWAYS;
flags |= FA_OPEN_ALWAYS;
if (*mode == 'a')
flags |= FA_OPEN_APPEND;
return flags;

View File

View File

@ -391,4 +391,7 @@ releases = [ "v0.0.1 b3b2f1c0e30b703666342ae4628e544299cdbd11" ]
[[packages]]
name = "pika_fatfs"
releases = [ "v0.0.1 280700b8a8eee1849d16ac68871d014392edf269" ]
releases = [
"v0.0.1 280700b8a8eee1849d16ac68871d014392edf269",
"v0.1.0 8ab8cd90be83f1cb86e2b2bcbb3b68d99d034815"
]