Check the maximum mapped objects for the PDO
This commit is contained in:
parent
006e3e3503
commit
38c329e87d
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ PDO_initMapping(CO_PDO_common_t* PDO, OD_t* OD, OD_entry_t* OD_PDOMapPar, bool_t
|
|||
}
|
||||
return CO_ERROR_OD_PARAMETERS;
|
||||
}
|
||||
if (mappedObjectsCount > CO_PDO_MAX_SIZE) {
|
||||
if (mappedObjectsCount > CO_PDO_MAX_MAPPED_ENTRIES) {
|
||||
*erroneousMap = 1;
|
||||
return CO_ERROR_NO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue