src/pdo.c
changeset 428 25b06f59f123
parent 426 8011552b1319
child 447 c9d01296d6d9
--- 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 : ",