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-pico
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-pico
Commits
c4f36170
Unverified
Commit
c4f36170
authored
Dec 13, 2023
by
erpebe
Committed by
GitHub
Dec 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct calculation of totalBlocks() in SD.h and SDFS.h (#1899)
parent
3068cd0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libraries/SD/src/SD.h
libraries/SD/src/SD.h
+1
-1
libraries/SDFS/src/SDFS.h
libraries/SDFS/src/SDFS.h
+1
-1
No files found.
libraries/SD/src/SD.h
View file @
c4f36170
...
...
@@ -128,7 +128,7 @@ public:
}
size_t
totalBlocks
()
{
return
(
totalClusters
()
/
blocksPerCluster
());
return
(
totalClusters
()
*
blocksPerCluster
());
}
size_t
clusterSize
()
{
...
...
libraries/SDFS/src/SDFS.h
View file @
c4f36170
...
...
@@ -183,7 +183,7 @@ public:
return
_fs
.
vol
()
->
clusterCount
();
}
size_t
totalBlocks
()
{
return
(
totalClusters
()
/
blocksPerCluster
());
return
(
totalClusters
()
*
blocksPerCluster
());
}
size_t
clusterSize
()
{
return
_fs
.
vol
()
->
bytesPerCluster
();
...
...
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