Merge pull request 'better name of invalid mode retval' (#40) from mueller/master into eive/develop
Reviewed-on: eive/fsfw#40
This commit is contained in:
commit
6de4798805
@ -196,7 +196,7 @@ ReturnValue_t AssemblyBase::checkModeCommand(Mode_t mode, Submode_t submode,
|
||||
}
|
||||
|
||||
if ((mode != MODE_ON) && (mode != DeviceHandlerIF::MODE_NORMAL)) {
|
||||
return INVALID_MODE_RETVAL;
|
||||
return MOVE_IS_INVALID;
|
||||
}
|
||||
|
||||
if (internalState != STATE_NONE) {
|
||||
|
@ -403,7 +403,7 @@ ReturnValue_t DeviceHandlerBase::isModeCombinationValid(Mode_t mode, Submode_t s
|
||||
return INVALID_SUBMODE;
|
||||
}
|
||||
default:
|
||||
return HasModesIF::INVALID_MODE_RETVAL;
|
||||
return HasModesIF::MOVE_IS_INVALID;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ class HasModesIF {
|
||||
|
||||
public:
|
||||
static const uint8_t INTERFACE_ID = CLASS_ID::HAS_MODES_IF;
|
||||
static const ReturnValue_t INVALID_MODE_RETVAL = MAKE_RETURN_CODE(0x01);
|
||||
static const ReturnValue_t MOVE_IS_INVALID = MAKE_RETURN_CODE(0x01);
|
||||
static const ReturnValue_t TRANS_NOT_ALLOWED = MAKE_RETURN_CODE(0x02);
|
||||
static const ReturnValue_t IN_TRANSITION = MAKE_RETURN_CODE(0x03);
|
||||
static const ReturnValue_t INVALID_SUBMODE = MAKE_RETURN_CODE(0x04);
|
||||
|
@ -125,7 +125,7 @@ ReturnValue_t TestAssembly::isModeCombinationValid(Mode_t mode, Submode_t submod
|
||||
return INVALID_SUBMODE;
|
||||
}
|
||||
}
|
||||
return INVALID_MODE_RETVAL;
|
||||
return MOVE_IS_INVALID;
|
||||
}
|
||||
|
||||
ReturnValue_t TestAssembly::initialize() {
|
||||
|
Loading…
Reference in New Issue
Block a user