better name of invalid mode retval
This commit is contained in:
parent
a7cb2d4354
commit
8b1c277c58
@ -196,7 +196,7 @@ ReturnValue_t AssemblyBase::checkModeCommand(Mode_t mode, Submode_t submode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((mode != MODE_ON) && (mode != DeviceHandlerIF::MODE_NORMAL)) {
|
if ((mode != MODE_ON) && (mode != DeviceHandlerIF::MODE_NORMAL)) {
|
||||||
return INVALID_MODE_RETVAL;
|
return MOVE_IS_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (internalState != STATE_NONE) {
|
if (internalState != STATE_NONE) {
|
||||||
|
@ -403,7 +403,7 @@ ReturnValue_t DeviceHandlerBase::isModeCombinationValid(Mode_t mode, Submode_t s
|
|||||||
return INVALID_SUBMODE;
|
return INVALID_SUBMODE;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return HasModesIF::INVALID_MODE_RETVAL;
|
return HasModesIF::MOVE_IS_INVALID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ class HasModesIF {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
static const uint8_t INTERFACE_ID = CLASS_ID::HAS_MODES_IF;
|
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 TRANS_NOT_ALLOWED = MAKE_RETURN_CODE(0x02);
|
||||||
static const ReturnValue_t IN_TRANSITION = MAKE_RETURN_CODE(0x03);
|
static const ReturnValue_t IN_TRANSITION = MAKE_RETURN_CODE(0x03);
|
||||||
static const ReturnValue_t INVALID_SUBMODE = MAKE_RETURN_CODE(0x04);
|
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_SUBMODE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return INVALID_MODE_RETVAL;
|
return MOVE_IS_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t TestAssembly::initialize() {
|
ReturnValue_t TestAssembly::initialize() {
|
||||||
|
Loading…
Reference in New Issue
Block a user