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
4ab0ba61
Unverified
Commit
4ab0ba61
authored
Jun 11, 2024
by
Earle F. Philhower, III
Committed by
GitHub
Jun 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash on SD.end() without initial SD.begin() (#2222)
Fixes #2220
parent
eb0badd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
libraries/SD/src/SD.h
libraries/SD/src/SD.h
+3
-2
No files found.
libraries/SD/src/SD.h
View file @
4ab0ba61
...
@@ -43,8 +43,9 @@ public:
...
@@ -43,8 +43,9 @@ public:
void
end
(
bool
endSPI
=
true
)
{
void
end
(
bool
endSPI
=
true
)
{
SDFS
.
end
();
SDFS
.
end
();
if
(
endSPI
)
{
if
(
endSPI
&&
_spi
)
{
_spi
->
end
();
_spi
->
end
();
_spi
=
nullptr
;
}
}
}
}
...
@@ -205,7 +206,7 @@ private:
...
@@ -205,7 +206,7 @@ private:
return
time
(
nullptr
);
return
time
(
nullptr
);
}
}
HardwareSPI
*
_spi
;
HardwareSPI
*
_spi
=
nullptr
;
};
};
...
...
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