Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
486a4c66
Unverified
Commit
486a4c66
authored
Nov 06, 2020
by
Me No Dev
Committed by
GitHub
Nov 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SDCARD: First sector always written twice if multiple sectors are updated
parent
ad07d369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libraries/SD/src/sd_diskio.cpp
libraries/SD/src/sd_diskio.cpp
+2
-1
No files found.
libraries/SD/src/sd_diskio.cpp
View file @
486a4c66
...
...
@@ -607,8 +607,9 @@ DRESULT ff_sd_write(uint8_t pdrv, const uint8_t* buffer, DWORD sector, UINT coun
if
(
count
>
1
)
{
res
=
sdWriteSectors
(
pdrv
,
(
const
char
*
)
buffer
,
sector
,
count
)
?
RES_OK
:
RES_ERROR
;
}
else
{
res
=
sdWriteSector
(
pdrv
,
(
const
char
*
)
buffer
,
sector
)
?
RES_OK
:
RES_ERROR
;
}
res
=
sdWriteSector
(
pdrv
,
(
const
char
*
)
buffer
,
sector
)
?
RES_OK
:
RES_ERROR
;
return
res
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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