Update FSFW #25
@ -2,7 +2,6 @@
|
|||||||
#define MISSION_DEVICES_MGMRM3100HANDLER_H_
|
#define MISSION_DEVICES_MGMRM3100HANDLER_H_
|
||||||
|
|
||||||
#include "fsfw/FSFW.h"
|
#include "fsfw/FSFW.h"
|
||||||
#include "devices/powerSwitcherList.h"
|
|
||||||
#include "devicedefinitions/MgmRM3100HandlerDefs.h"
|
#include "devicedefinitions/MgmRM3100HandlerDefs.h"
|
||||||
#include "fsfw/devicehandlers/DeviceHandlerBase.h"
|
#include "fsfw/devicehandlers/DeviceHandlerBase.h"
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ static constexpr uint8_t TMRC_DEFAULT_VALUE = TMRC_DEFAULT_37HZ_VALUE;
|
|||||||
|
|
||||||
static constexpr uint8_t MEASUREMENT_REG_START = 0x24;
|
static constexpr uint8_t MEASUREMENT_REG_START = 0x24;
|
||||||
static constexpr uint8_t BIST_REGISTER = 0x33;
|
static constexpr uint8_t BIST_REGISTER = 0x33;
|
||||||
static constexpr uint8_t DATA_READY_VAL = 0b1000'0000;
|
static constexpr uint8_t DATA_READY_VAL = 0b10000000;
|
||||||
static constexpr uint8_t STATUS_REGISTER = 0x34;
|
static constexpr uint8_t STATUS_REGISTER = 0x34;
|
||||||
static constexpr uint8_t REVID_REGISTER = 0x36;
|
static constexpr uint8_t REVID_REGISTER = 0x36;
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ TEST_CASE("DleEncoder" , "[DleEncoder]") {
|
|||||||
for(size_t faultyDestSize = 0; faultyDestSize < expectedVec.size(); faultyDestSize ++) {
|
for(size_t faultyDestSize = 0; faultyDestSize < expectedVec.size(); faultyDestSize ++) {
|
||||||
result = dleEncoder.encode(vecToEncode.data(), vecToEncode.size(),
|
result = dleEncoder.encode(vecToEncode.data(), vecToEncode.size(),
|
||||||
buffer.data(), faultyDestSize, &encodedLen);
|
buffer.data(), faultyDestSize, &encodedLen);
|
||||||
REQUIRE(result == DleEncoder::STREAM_TOO_SHORT);
|
REQUIRE(result == static_cast<int>(DleEncoder::STREAM_TOO_SHORT));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user