Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
e2745b30
Commit
e2745b30
authored
Dec 27, 2014
by
Damien George
Browse files
lib/fatfs: Allow a smaller minimum sector count for fatfs to be created.
parent
20236a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/fatfs/ff.c
View file @
e2745b30
...
...
@@ -4073,7 +4073,7 @@ FRESULT f_mkfs (
n_vol
=
LD_DWORD
(
tbl
+
12
);
/* Volume size */
}
else
{
/* Create a partition in this function */
if
(
disk_ioctl
(
pdrv
,
GET_SECTOR_COUNT
,
&
n_vol
)
!=
RES_OK
||
n_vol
<
128
)
if
(
disk_ioctl
(
pdrv
,
GET_SECTOR_COUNT
,
&
n_vol
)
!=
RES_OK
||
n_vol
<
48
)
/* dpgeorge: allow smaller minimum volume; 48 was 128 */
return
FR_DISK_ERR
;
b_vol
=
(
sfd
)
?
0
:
63
;
/* Volume start sector */
n_vol
-=
b_vol
;
/* Volume size */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment