mirror of
https://github.com/BitMaker-hub/NerdMiner_v2.git
synced 2025-10-10 13:15:25 +02:00
Update SDCard.cpp
fix
This commit is contained in:
@@ -40,11 +40,13 @@ SDCard::SDCard(int ID):cardInitialized_(false),cardBusy_(false)
|
|||||||
SDCard::~SDCard()
|
SDCard::~SDCard()
|
||||||
{
|
{
|
||||||
iSD_->end();
|
iSD_->end();
|
||||||
|
#ifdef BUILD_SDSPI
|
||||||
if(newInstance_)
|
if(newInstance_)
|
||||||
{
|
{
|
||||||
ispi_->end();
|
ispi_->end();
|
||||||
delete ispi_;
|
delete ispi_;
|
||||||
}
|
}
|
||||||
|
#endif // BUILD_SDSPI
|
||||||
Serial.println("SDCard: Unmounted");
|
Serial.println("SDCard: Unmounted");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user