Update SDCard.cpp

fix
This commit is contained in:
elmo128 2023-09-28 06:05:45 +02:00 committed by GitHub
parent fce8135b9c
commit a587c131ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,11 +40,13 @@ SDCard::SDCard(int ID):cardInitialized_(false),cardBusy_(false)
SDCard::~SDCard()
{
iSD_->end();
#ifdef BUILD_SDSPI
if(newInstance_)
{
ispi_->end();
delete ispi_;
}
#endif // BUILD_SDSPI
Serial.println("SDCard: Unmounted");
}