added additional explicit returnvalues
This commit is contained in:
parent
c4c340fde1
commit
b8cfb36426
@ -39,6 +39,11 @@ class Service11TelecommandScheduling final : public PusServiceBase {
|
|||||||
|
|
||||||
static constexpr ReturnValue_t INVALID_TYPE_TIME_WINDOW =
|
static constexpr ReturnValue_t INVALID_TYPE_TIME_WINDOW =
|
||||||
HasReturnvaluesIF::makeReturnCode(CLASS_ID, 1);
|
HasReturnvaluesIF::makeReturnCode(CLASS_ID, 1);
|
||||||
|
static constexpr ReturnValue_t TIMESHIFTING_NOT_POSSIBLE =
|
||||||
|
HasReturnvaluesIF::makeReturnCode(CLASS_ID, 2);
|
||||||
|
static constexpr ReturnValue_t INVALID_RELATIVE_TIME =
|
||||||
|
HasReturnvaluesIF::makeReturnCode(CLASS_ID, 3);
|
||||||
|
|
||||||
// The types of PUS-11 subservices
|
// The types of PUS-11 subservices
|
||||||
enum Subservice : uint8_t {
|
enum Subservice : uint8_t {
|
||||||
ENABLE_SCHEDULING = 1,
|
ENABLE_SCHEDULING = 1,
|
||||||
|
@ -345,7 +345,7 @@ inline ReturnValue_t Service11TelecommandScheduling<MAX_NUM_TCS>::doTimeshiftAct
|
|||||||
"Service11TelecommandScheduling::doTimeshiftActivity: Either 0 or more than 1 TCs found. "
|
"Service11TelecommandScheduling::doTimeshiftActivity: Either 0 or more than 1 TCs found. "
|
||||||
"No explicit timeshifting possible\n");
|
"No explicit timeshifting possible\n");
|
||||||
#endif
|
#endif
|
||||||
return RETURN_FAILED;
|
return TIMESHIFTING_NOT_POSSIBLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// temporarily hold the item
|
// temporarily hold the item
|
||||||
@ -380,7 +380,7 @@ inline ReturnValue_t Service11TelecommandScheduling<MAX_NUM_TCS>::doFilterTimesh
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
if (relativeTime == 0) {
|
if (relativeTime == 0) {
|
||||||
return RETURN_FAILED;
|
return INVALID_RELATIVE_TIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do time window
|
// Do time window
|
||||||
|
Loading…
Reference in New Issue
Block a user