# HG changeset patch # User Stefan@Sheldon # Date 1308587803 -7200 # Node ID 06494ae5b2b6b3f4231f286e1ba59bfa3f46ed96 # Parent cff8e50333e85eb05db6d707c83cb0474f917d2d Removed unneccessary overhead introduced with the last fix. diff -r cff8e50333e8 -r 06494ae5b2b6 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))