author | etisserant |
Thu, 20 Mar 2008 15:28:11 +0100 | |
changeset 428 | 25b06f59f123 |
parent 427 | 6deafe46484f |
child 429 | 7cba38279f98 |
--- a/src/pdo.c Thu Mar 20 15:27:58 2008 +0100 +++ b/src/pdo.c Thu Mar 20 15:28:11 2008 +0100 @@ -57,7 +57,7 @@ UNS8 offset = 0x00; const UNS8 *pMappingCount = (UNS8 *) TPDO_map->pSubindex[0].pObject; - pdo->cob_id = *(UNS16 *) TPDO_com->pSubindex[1].pObject & UNS16_LE (0x7FF); + pdo->cob_id = UNS16_LE(*(UNS32*)TPDO_com->pSubindex[1].pObject & 0x7FF); pdo->rtr = NOT_A_REQUEST; MSG_WAR (0x3009, " PDO CobId is : ",