Wrong check on PDO inhibit bit fixed.
--- 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;
}