writing api for scratch buffer

This commit is contained in:
2021-07-09 16:57:34 +02:00
committed by Robin Mueller
parent 8980a696c9
commit bef73d7357
7 changed files with 89 additions and 0 deletions

View File

@ -122,6 +122,8 @@ ReturnValue_t SdCardManager::sdCardActive(std::pair<bool, bool>& active) {
}
sd::SdCard SdCardManager::getPreferredSdCard() const {
int result = std::system("xsc_scratch read PREFSD > /tmp/pref_sd.txt");
return preferredSdCard;
}