# HG changeset patch
# User etisserant
# Date 1206023291 -3600
# Node ID 25b06f59f123d06cdabe6b3b931aeaa6d7437464
# Parent  6deafe46484f59073f6468645b03a03447475f33
Endianization fix in pdo.c

diff -r 6deafe46484f -r 25b06f59f123 src/pdo.c
--- 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 : ",