small fixes

This commit is contained in:
Ulrich Mohr 2022-09-07 10:54:49 +02:00
parent c7e6f01f9b
commit 0e6e124eab
4 changed files with 2 additions and 5 deletions

View File

@ -83,7 +83,7 @@ void ActionHelper::prepareExecution(MessageQueueId_t commandedBy, ActionId_t act
}
Action* action = actionIter->second;
result = action->deSerialize(&dataPtr, &size, SerializeIF::Endianness::NETWORK);
if ((result != HasReturnvaluesIF::RETURN_OK) || (size != 0)){ //TODO write unittest for second condition
if ((result != HasReturnvaluesIF::RETURN_OK)){
CommandMessage reply;
ActionMessage::setStepReply(&reply, actionId, 0, HasActionsIF::INVALID_PARAMETERS);
queueToUse->sendMessage(commandedBy, &reply);

View File

@ -107,8 +107,6 @@ const ModeHelper * ControllerBase::getModeHelper() const {
return &modeHelper;
}
void ControllerBase::modeChanged(Mode_t mode, Submode_t submode) { return; }
ReturnValue_t ControllerBase::setHealth(HealthState health) {
switch (health) {
case HEALTHY:

View File

@ -4,5 +4,5 @@
// Note: some DBs (Postgress, Mongo) only support signed 64bit integers. To have a common denominator, all integers are int64_t.
// As such, ther is no unsigned Type, as there can not be a uint64_t and uint32_t completely fits into int64_t
namespace Types {
enum ParameterType { SIGNED, FLOATING, ENUM, UNSUPPORTED };
enum ParameterType { SIGNED, FLOATING, ENUM, STRING, BYTEARRAY, UNSUPPORTED };
} // namespace Types

View File

@ -36,7 +36,6 @@ class HasModesIF {
//! A mode command was rejected by the called object. Par1: called object id, Par2: return code.
static const Event MODE_CMD_REJECTED = MAKE_EVENT(7, severity::LOW);
<<<<<<< HEAD
//! The device is powered and ready to perform operations. In this mode, no commands are
//! sent by the device handler itself, but direct commands can be commanded and will be
//! interpreted