fix so it compiles
This commit is contained in:
parent
658e9a4907
commit
bf2a4d0ad7
@ -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