Skip to content

Commit

Permalink
sd_card mmem reg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Oct 7, 2019
1 parent 218cd9d commit 0c7baac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/eez/apps/psu/sd_card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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() {
Expand Down

0 comments on commit 0c7baac

Please sign in to comment.