Skip to content

Commit

Permalink
Merge branch 'collin80/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamvoss committed Sep 23, 2017
2 parents 5350731 + a5b1406 commit 1f01735
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/Arduino_Due_SD_HSMCI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ MassStorage::MassStorage() : combinedName(combinedNameBuff, ARRAY_SIZE(combinedN
findDir = new DIR();
}

void MassStorage::Init()
bool MassStorage::Init()
{
// Initialize SD MMC stack

Expand Down Expand Up @@ -350,7 +350,7 @@ void MassStorage::Init()
Debug("MS",")\n");
break;
}
return;
return false;
}
} while (err != SD_MMC_OK);

Expand Down Expand Up @@ -382,14 +382,14 @@ void MassStorage::Init()
break;
case CARD_TYPE_SDIO:
Debug("SDIO\n");
return;
return false;
case CARD_TYPE_SD_COMBO:
Debug("SD COMBO\n");
break;
case CARD_TYPE_UNKNOWN:
default:
Debug("Unknown\n");
return;
return false;
}

// Mount the file system
Expand All @@ -399,7 +399,9 @@ void MassStorage::Init()
{
Debug("MS","Can't mount filesystem 0: code ");
Debug(mounted);
return false;
}
return true;
}


Expand Down
2 changes: 1 addition & 1 deletion src/Arduino_Due_SD_HSMCI.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class MassStorage

//protected:
MassStorage(void);//MassStorage(Platform* p);
void Init();
bool Init();

private:

Expand Down

0 comments on commit 1f01735

Please sign in to comment.