scratch buffer API finished

This commit is contained in:
2021-07-16 22:20:53 +02:00
committed by Robin Mueller
parent 3b1a68b75b
commit 3f1fef4bdf
4 changed files with 130 additions and 22 deletions

View File

@ -56,6 +56,10 @@ ReturnValue_t SdCardManager::switchOnSdCard(sd::SdCard sdCard, bool doMountSdCar
else if(sdCard == sd::SdCard::SLOT_1) {
targetStatus = statusPair->second;
}
else {
// Should not happen
targetStatus = sd::SdStatus::OFF;
}
auto switchCall = [&]() {
if(targetStatus == sd::SdStatus::ON) {