mode check for commands executed by supervisor helper

This commit is contained in:
Jakob Meier 2022-08-20 10:26:19 +02:00
parent 0ea993e16b
commit ad3bdbcf96

View File

@ -104,6 +104,11 @@ ReturnValue_t PlocSupervisorHandler::executeAction(ActionId_t actionId,
return SupvReturnValuesIF::SUPV_HELPER_EXECUTING;
}
result = acceptExternalDeviceCommands();
if (result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
switch (actionId) {
case PERFORM_UPDATE: {
if (size > config::MAX_PATH_SIZE + config::MAX_FILENAME_SIZE) {