finished update cmd impl
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
2022-09-26 12:26:08 +02:00
parent eb0ace3bc6
commit 8161d1cd88
4 changed files with 90 additions and 34 deletions

View File

@ -168,6 +168,9 @@ class CoreController : public ExtendedControllerBase {
// Used if SD switches or mount commands are issued via telecommand
SET_STATE_FROM_COMMAND,
};
enum class SwUpdateSources { SD_0, SD_1, TMP_DIR };
static constexpr bool BLOCKING_SD_INIT = false;
SdCardManager* sdcMan = nullptr;
@ -230,6 +233,7 @@ class CoreController : public ExtendedControllerBase {
void updateSdInfoOther();
ReturnValue_t sdCardSetup(sd::SdCard sdCard, sd::SdState targetState, std::string sdChar,
bool printOutput = true);
ReturnValue_t executeSwUpdate(SwUpdateSources sourceDir, const uint8_t* data, size_t size);
ReturnValue_t sdColdRedundantBlockingInit();
void currentStateSetter(sd::SdCard sdCard, sd::SdState newState);