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
94746abe
Unverified
Commit
94746abe
authored
Apr 09, 2024
by
Jan Procházka
Committed by
GitHub
Apr 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(sd): AquireSPI lock in sdcard_uninit (#9469)
parent
7d911b99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
libraries/SD/src/sd_diskio.cpp
libraries/SD/src/sd_diskio.cpp
+1
-0
No files found.
libraries/SD/src/sd_diskio.cpp
View file @
94746abe
...
@@ -712,6 +712,7 @@ uint8_t sdcard_uninit(uint8_t pdrv)
...
@@ -712,6 +712,7 @@ uint8_t sdcard_uninit(uint8_t pdrv)
if
(
pdrv
>=
FF_VOLUMES
||
card
==
NULL
)
{
if
(
pdrv
>=
FF_VOLUMES
||
card
==
NULL
)
{
return
1
;
return
1
;
}
}
AcquireSPI
lock
(
card
);
sdTransaction
(
pdrv
,
GO_IDLE_STATE
,
0
,
NULL
);
sdTransaction
(
pdrv
,
GO_IDLE_STATE
,
0
,
NULL
);
ff_diskio_register
(
pdrv
,
NULL
);
ff_diskio_register
(
pdrv
,
NULL
);
s_cards
[
pdrv
]
=
NULL
;
s_cards
[
pdrv
]
=
NULL
;
...
...
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