bugfixes for sdc manager
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
This commit is contained in:
@ -30,14 +30,15 @@ public:
|
||||
SWITCHING_ON,
|
||||
SWITCHING_OFF,
|
||||
MOUNTING,
|
||||
UNMOUNTING,
|
||||
IDLE
|
||||
};
|
||||
|
||||
enum class OpStatus {
|
||||
IDLE,
|
||||
SUCCESS,
|
||||
TIMEOUT,
|
||||
ONGOING,
|
||||
SUCCESS,
|
||||
FAIL
|
||||
};
|
||||
|
||||
@ -130,8 +131,10 @@ public:
|
||||
/**
|
||||
* Update the state file or creates one if it does not exist. You need to call this
|
||||
* function before calling #sdCardActive
|
||||
* @return - RETURN_OK if the state file was updated successfully
|
||||
* - SYSTEM_CALL_ERROR if the call to create the status file failed
|
||||
* @return
|
||||
* - RETURN_OK if the state file was updated successfully
|
||||
* - CommandExecutor::COMMAND_PENDING: Non-blocking command is pending
|
||||
* - RETURN_FAILED: blocking command failed
|
||||
*/
|
||||
ReturnValue_t updateSdCardStateFile();
|
||||
|
||||
@ -195,9 +198,6 @@ private:
|
||||
CommandExecutor cmdExecutor;
|
||||
Operations currentOp = Operations::IDLE;
|
||||
bool blocking = true;
|
||||
std::array<char, 256> readBuf {};
|
||||
std::string currentCmd;
|
||||
int opFileNum = 0;
|
||||
|
||||
SdCardManager();
|
||||
|
||||
@ -208,9 +208,6 @@ private:
|
||||
|
||||
std::string currentPrefix;
|
||||
|
||||
ReturnValue_t handleCommand(std::string cmd, std::string funcName);
|
||||
ReturnValue_t handleBlockingOperation(std::string funcName);
|
||||
|
||||
static SdCardManager* factoryInstance;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user