ping cmd working
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Irini Kosmidou
2022-06-21 17:46:59 +02:00
parent 2584e51bb4
commit 20328f89ae
2 changed files with 44 additions and 22 deletions

View File

@ -14,16 +14,19 @@ class ScexDeviceHandler : public DeviceHandlerBase {
virtual ~ScexDeviceHandler();
private:
static constexpr uint32_t LONG_CD = 180 * 1000;
static constexpr uint32_t SHORT_CD = 7000;
std::array<uint8_t, 64> cmdBuf = {};
std::string fileId = "";
std::string fileName = "";
bool fileNameSet = false;
bool commandActive = false;
bool debugMode = true;
scex::Cmds currCmd = scex::Cmds::PING;
SdCardMountedIF *sdcMan = nullptr;
Countdown finishCountdown = Countdown(180 * 1000);
Countdown finishCountdown = Countdown(LONG_CD);
std::string random_string(std::string::size_type length);
@ -32,6 +35,8 @@ class ScexDeviceHandler : public DeviceHandlerBase {
void doShutDown() override;
ScexHelper helper;
ScexUartReader &reader;
void performOperationHook() override;
ReturnValue_t buildNormalDeviceCommand(DeviceCommandId_t *id) override;
ReturnValue_t buildTransitionDeviceCommand(DeviceCommandId_t *id) override;
ReturnValue_t buildCommandFromCommand(DeviceCommandId_t deviceCommand, const uint8_t *commandData,