uint32_t fix for 16bit mcu's.
This commit is contained in:
parent
90950be0e4
commit
361080da87
2 changed files with 6 additions and 3 deletions
|
|
@ -279,7 +279,8 @@ static ODR_t OD_write_PDO_mapping(OD_stream_t *stream, const void *buf,
|
|||
PDO->mappedObjectsCount = mappedObjectsCount;
|
||||
}
|
||||
else {
|
||||
ODR_t odRet = PDOconfigMap(PDO, CO_getUint32(buf), stream->subIndex-1,
|
||||
uint32_t val = CO_getUint32(buf);
|
||||
ODR_t odRet = PDOconfigMap(PDO, val, stream->subIndex-1,
|
||||
PDO->isRPDO, PDO->OD);
|
||||
if (odRet != ODR_OK) {
|
||||
return odRet;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,8 @@ static ODR_t OD_write_1010(OD_stream_t *stream, const void *buf,
|
|||
return ODR_READONLY;
|
||||
}
|
||||
|
||||
if (CO_getUint32(buf) != 0x65766173) {
|
||||
uint32_t val = CO_getUint32(buf);
|
||||
if (val != 0x65766173) {
|
||||
return ODR_DATA_TRANSF;
|
||||
}
|
||||
|
||||
|
|
@ -97,7 +98,8 @@ static ODR_t OD_write_1011(OD_stream_t *stream, const void *buf,
|
|||
return ODR_READONLY;
|
||||
}
|
||||
|
||||
if (CO_getUint32(buf) != 0x64616F6C) {
|
||||
uint32_t val = CO_getUint32(buf);
|
||||
if (val != 0x64616F6C) {
|
||||
return ODR_DATA_TRANSF;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue