Skip to content

Commit 298a20b

Browse files
committed
sd card detect fixed
1 parent 42b1ac6 commit 298a20b

File tree

2 files changed

+44
-5
lines changed

2 files changed

+44
-5
lines changed

modular-psu-firmware.eez-project

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25420,11 +25420,9 @@
2542025420
"height": 32,
2542125421
"widgets": [
2542225422
{
25423-
"type": "Rectangle",
25423+
"type": "Container",
2542425424
"style": {
25425-
"inheritFrom": "status_bgnd",
25426-
"color": "status_line_text",
25427-
"backgroundColor": "status_line_background",
25425+
"inheritFrom": "default",
2542825426
"padding": 0
2542925427
},
2543025428
"activeStyle": {
@@ -25435,7 +25433,47 @@
2543525433
"top": 0,
2543625434
"width": 82,
2543725435
"height": 32,
25438-
"invertColors": true
25436+
"widgets": [
25437+
{
25438+
"type": "Rectangle",
25439+
"style": {
25440+
"inheritFrom": "status_bgnd",
25441+
"color": "status_line_text",
25442+
"backgroundColor": "status_line_background",
25443+
"padding": 0
25444+
},
25445+
"activeStyle": {
25446+
"inheritFrom": "default",
25447+
"padding": 0
25448+
},
25449+
"left": 0,
25450+
"top": 0,
25451+
"width": 41,
25452+
"height": 32,
25453+
"invertColors": true
25454+
},
25455+
{
25456+
"type": "Text",
25457+
"style": {
25458+
"inheritFrom": "status_bgnd",
25459+
"font": "Heydings14",
25460+
"alignVertical": "center",
25461+
"color": "status_line_text",
25462+
"backgroundColor": "status_line_background",
25463+
"padding": 0
25464+
},
25465+
"activeStyle": {
25466+
"inheritFrom": "default",
25467+
"padding": 0
25468+
},
25469+
"action": "show_previous_page",
25470+
"left": 41,
25471+
"top": 0,
25472+
"width": 41,
25473+
"height": 32,
25474+
"text": "E"
25475+
}
25476+
]
2543925477
},
2544025478
{
2544125479
"type": "Container",

src/eez/apps/psu/sd_card.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ void unmount() {
7979
#if defined(EEZ_PLATFORM_STM32)
8080
FATFS_UnLinkDriver(SDPath);
8181
#endif
82+
g_mounted = false;
8283
g_lastError = SCPI_ERROR_MISSING_MASS_MEDIA;
8384
g_testResult = TEST_FAILED;
8485
setQuesBits(QUES_MMEM, true);

0 commit comments

Comments
 (0)