Removed unneccessary overhead introduced with the last fix.
authorStefan@Sheldon
Mon, 20 Jun 2011 18:36:43 +0200
changeset 661 06494ae5b2b6
parent 660 cff8e50333e8
child 662 aad111ad0018
Removed unneccessary overhead introduced with the last fix.
src/pdo.c
--- a/src/pdo.c	Mon Jun 20 15:03:54 2011 +0200
+++ b/src/pdo.c	Mon Jun 20 18:36:43 2011 +0200
@@ -512,7 +512,6 @@
 UNS8
 sendOnePDOevent (CO_Data * d, UNS8 pdoNum)
 {
-  UNS8 *pTransmissionType;
   UNS16 offsetObjdict;
   Message pdo;
   if (!d->CurrentCommunicationState.csPDO ||
@@ -522,10 +521,9 @@
     }
 
   offsetObjdict = (UNS16) (d->firstIndex->PDO_TRS + pdoNum);
-  pTransmissionType = (UNS8 *) d->objdict[offsetObjdict].pSubindex[2].pObject;
 
   MSG_WAR (0x3968, "  PDO is on EVENT. Trans type : ",
-           *pTransmissionType);
+           *((UNS8 *) d->objdict[offsetObjdict].pSubindex[2].pObject));
   
   memset(&pdo, 0, sizeof(pdo));
   if (buildPDO (d, pdoNum, &pdo))