Skip to content

Commit 73ab399

Browse files
committed
sd card remount
1 parent 160ea21 commit 73ab399

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/eez/modules/psu/sd_card.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ void onSdDetectInterruptHandler() {
129129
}
130130
#endif
131131

132+
static bool mount();
133+
static void unmount();
134+
135+
bool remount() {
136+
unmount();
137+
return mount();
138+
}
139+
132140
bool isMounted(int *err) {
133141
if (g_state == STATE_MOUNTED) {
134142
if (err != nullptr) {

src/eez/modules/psu/sd_card.h

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ void onSdDetectInterrupt();
4444
void onSdDetectInterruptHandler();
4545
#endif
4646

47+
bool remount();
48+
4749
bool isMounted(int *err);
4850
bool isBusy();
4951

0 commit comments

Comments
 (0)