Wrong check on PDO inhibit bit fixed.
authoredouard
Fri, 10 Sep 2010 13:44:06 +0200
changeset 626 270b25cd9e8f
parent 625 5482b98e82a3
child 627 4939452b1bf1
Wrong check on PDO inhibit bit fixed.
src/pdo.c
--- a/src/pdo.c	Fri Sep 10 13:43:17 2010 +0200
+++ b/src/pdo.c	Fri Sep 10 13:44:06 2010 +0200
@@ -487,8 +487,8 @@
 {
   /*store_as_last_message */
   d->PDO_status[pdoNum].last_message = *pdo;
-  MSG_WAR (0x396D, "sendPDO cobId :", UNS16_LE(pdo.cob_id));
-  MSG_WAR (0x396E, "     Nb octets  : ", pdo.len);
+  MSG_WAR (0x396D, "sendPDO cobId :", UNS16_LE(pdo->cob_id));
+  MSG_WAR (0x396E, "     Nb octets  : ", pdo->len);
 
   canSend (d->canHandle, pdo);
 }
@@ -513,7 +513,7 @@
 sendOnePDOevent (CO_Data * d, UNS32 pdoNum)
 {
   if (!d->CurrentCommunicationState.csPDO ||
-      !(d->PDO_status[pdoNum].transmit_type_parameter & PDO_INHIBITED))
+      (d->PDO_status[pdoNum].transmit_type_parameter & PDO_INHIBITED))
     {
       return 0;
     }