decline commands in wrong mode
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
This commit is contained in:
parent
1aef8b6973
commit
92bae9049f
@ -198,6 +198,11 @@ ReturnValue_t FreshSupvHandler::initializeLocalDataPool(localpool::DataPool& loc
|
|||||||
ReturnValue_t FreshSupvHandler::executeAction(ActionId_t actionId, MessageQueueId_t commandedBy,
|
ReturnValue_t FreshSupvHandler::executeAction(ActionId_t actionId, MessageQueueId_t commandedBy,
|
||||||
const uint8_t* data, size_t size) {
|
const uint8_t* data, size_t size) {
|
||||||
using namespace supv;
|
using namespace supv;
|
||||||
|
// The SUPV does not have any action commands where there is no communication with the device
|
||||||
|
// involved.
|
||||||
|
if(mode != MODE_ON and mode != MODE_NORMAL) {
|
||||||
|
return HasModesIF::INVALID_MODE;
|
||||||
|
}
|
||||||
ReturnValue_t result;
|
ReturnValue_t result;
|
||||||
if (uartManager->longerRequestActive()) {
|
if (uartManager->longerRequestActive()) {
|
||||||
return result::SUPV_HELPER_EXECUTING;
|
return result::SUPV_HELPER_EXECUTING;
|
||||||
@ -238,8 +243,7 @@ ReturnValue_t FreshSupvHandler::executeAction(ActionId_t actionId, MessageQueueI
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// This might not be necessary, but I think the PLOC SUPV is not able to process multiple
|
// The PLOC SUPV is not able to process multiple commands consecutively.
|
||||||
// commands consecutively..
|
|
||||||
if (isCommandPending()) {
|
if (isCommandPending()) {
|
||||||
return HasActionsIF::IS_BUSY;
|
return HasActionsIF::IS_BUSY;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user