From 0c7baac9d9ef506a4136cb787489a1dedd721154 Mon Sep 17 00:00:00 2001 From: Martin Vladic Date: Mon, 7 Oct 2019 11:55:52 +0200 Subject: [PATCH] sd_card mmem reg fix --- src/eez/apps/psu/sd_card.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/eez/apps/psu/sd_card.cpp b/src/eez/apps/psu/sd_card.cpp index a2b4d5f69..16ea148f6 100644 --- a/src/eez/apps/psu/sd_card.cpp +++ b/src/eez/apps/psu/sd_card.cpp @@ -68,7 +68,7 @@ void mount() { if (SD.mount(&g_lastError)) { g_mounted = true; g_testResult = TEST_OK; - setQuesBits(QUES_MMEM, true); + setQuesBits(QUES_MMEM, false); } else { g_testResult = TEST_FAILED; } @@ -79,10 +79,9 @@ void unmount() { #if defined(EEZ_PLATFORM_STM32) FATFS_UnLinkDriver(SDPath); #endif - g_mounted = false; g_lastError = SCPI_ERROR_MISSING_MASS_MEDIA; g_testResult = TEST_FAILED; - setQuesBits(QUES_MMEM, false); + setQuesBits(QUES_MMEM, true); } void init() {