Skip to content

Commit 7f7336d

Browse files
authored
Merge pull request #98 from ISSUIUC/flash-init-fix
Flash Initialization Fix
2 parents bc59842 + d57e792 commit 7f7336d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MIDAS/src/hardware/SDLog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ErrorCode SDSink::init() {
1818
}
1919
if (!SD_MMC.begin("/sd", true, false, SDMMC_FREQ_52M, 5)) {
2020
failed = true;
21-
return ErrorCode::NoError;
21+
return ErrorCode::SDBeginFailed;
2222
}
2323

2424
char file_name[16] = "data";
@@ -28,7 +28,7 @@ ErrorCode SDSink::init() {
2828
file = SD_MMC.open(file_name, FILE_WRITE, true);
2929
if (!file) {
3030
failed = true;
31-
return ErrorCode::NoError;
31+
return ErrorCode::SDCouldNotOpenFile;
3232
}
3333

3434
return ErrorCode::NoError;

0 commit comments

Comments
 (0)