Filesystem Update #53
@ -40,7 +40,7 @@ ReturnValue_t CoreController::initialize() {
|
||||
|
||||
sif::info << "Switching on SD card " << printoutString << ".." << std::endl;
|
||||
|
||||
result = SdCardManager::instance()->switchOnSdCard(preferredSdCard);
|
||||
result = SdCardManager::instance()->switchOnSdCard(preferredSdCard, true);
|
||||
if(result == SdCardManager::ALREADY_ON) {
|
||||
sif::info << "SD card " << printoutString << " is already on" << std::endl;
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ void SdCardManager::setPreferredSdCard(sd::SdCard sdCard) {
|
||||
|
||||
ReturnValue_t SdCardManager::updateSdCardStateFile() {
|
||||
// Use q7hw utility and pipe the command output into the state file
|
||||
std::string updateCmd = "q7hw sd info all > " + SD_STATE_FILE;
|
||||
std::string updateCmd = "q7hw sd info all > " + std::string(SD_STATE_FILE);
|
||||
int result = std::system(updateCmd.c_str());
|
||||
if(result == 0) {
|
||||
return HasReturnvaluesIF::RETURN_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user