Merge branch 'develop' into meier/pdec-config-persistent
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
Jakob Meier
2023-02-27 08:07:00 +01:00
89 changed files with 1474 additions and 421 deletions

View File

@ -1,3 +1,3 @@
target_sources(
${LIB_EIVE_MISSION} PRIVATE Timestamp.cpp ProgressPrinter.cpp Filenaming.cpp
GlobalConfigHandler.cpp)
GlobalConfigHandler.cpp DummySdCardManager.cpp)

View File

@ -0,0 +1,13 @@
#include "DummySdCardManager.h"
DummySdCardManager::DummySdCardManager(std::string prefix) : prefix(std::move(prefix)) {}
const char* DummySdCardManager::getCurrentMountPrefix() const { return prefix.c_str(); }
bool DummySdCardManager::isSdCardUsable(std::optional<sd::SdCard> sdCard) { return true; }
std::optional<sd::SdCard> DummySdCardManager::getPreferredSdCard() const { return std::nullopt; }
void DummySdCardManager::setActiveSdCard(sd::SdCard sdCard) {}
std::optional<sd::SdCard> DummySdCardManager::getActiveSdCard() const { return std::nullopt; }

View File

@ -0,0 +1,18 @@
#ifndef BSP_LINUX_BOARD_RPISDCARDMANAGER_H_
#define BSP_LINUX_BOARD_RPISDCARDMANAGER_H_
#include <mission/memory/SdCardMountedIF.h>
class DummySdCardManager : public SdCardMountedIF {
public:
DummySdCardManager(std::string prefix);
const char* getCurrentMountPrefix() const override;
bool isSdCardUsable(std::optional<sd::SdCard> sdCard) override;
std::optional<sd::SdCard> getPreferredSdCard() const override;
void setActiveSdCard(sd::SdCard sdCard) override;
std::optional<sd::SdCard> getActiveSdCard() const override;
private:
std::string prefix;
};
#endif /* BSP_LINUX_BOARD_RPISDCARDMANAGER_H_ */