PLOC SUPV extensions #821

Merged
muellerr merged 45 commits from ploc-supv-extensions into main 2023-11-29 14:52:09 +01:00
35 changed files with 2258 additions and 625 deletions
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, 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;
} }