PLOC SUPV extensions #821

Merged
muellerr merged 45 commits from ploc-supv-extensions into main 2023-11-29 14:52:09 +01:00
Showing only changes of commit 92bae9049f - Show all commits

View File

@ -198,6 +198,11 @@ ReturnValue_t FreshSupvHandler::initializeLocalDataPool(localpool::DataPool& loc
ReturnValue_t FreshSupvHandler::executeAction(ActionId_t actionId, MessageQueueId_t commandedBy,
const uint8_t* data, size_t size) {
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;
if (uartManager->longerRequestActive()) {
return result::SUPV_HELPER_EXECUTING;
@ -238,8 +243,7 @@ ReturnValue_t FreshSupvHandler::executeAction(ActionId_t actionId, MessageQueueI
default:
break;
}
// This might not be necessary, but I think the PLOC SUPV is not able to process multiple
// commands consecutively..
// The PLOC SUPV is not able to process multiple commands consecutively.
if (isCommandPending()) {
return HasActionsIF::IS_BUSY;
}