added local parameter handler to PdecConfig to store persistent parameters

This commit is contained in:
Jakob Meier
2023-02-23 10:09:04 +01:00
parent 28f3b07c5c
commit 3b17af9d07
8 changed files with 89 additions and 47 deletions

View File

@ -22,7 +22,7 @@ ReturnValue_t FilesystemHelper::checkPath(std::string path) {
}
} else if (path.substr(0, sizeof(config::SD_1_MOUNT_POINT)) ==
std::string(config::SD_1_MOUNT_POINT)) {
if (!sdcMan->isSdCardUsable(sd::SLOT_0)) {
if (!sdcMan->isSdCardUsable(sd::SLOT_1)) {
sif::warning << "FilesystemHelper::checkPath: SD card 1 not mounted" << std::endl;
return SD_NOT_MOUNTED;
}