equal
deleted
inserted
replaced
119 /* get the CobId*/ |
119 /* get the CobId*/ |
120 pwCobId = (UNS32*) d->objdict[offset].pSubindex[1].pObject; |
120 pwCobId = (UNS32*) d->objdict[offset].pSubindex[1].pObject; |
121 |
121 |
122 MSG_WAR(0x3930, "sendPDOrequest cobId is : ",*pwCobId); |
122 MSG_WAR(0x3930, "sendPDOrequest cobId is : ",*pwCobId); |
123 { |
123 { |
124 Message pdo = {*pwCobId, REQUEST, 0}; |
124 Message pdo; |
125 return canSend(d->canHandle,&pdo); |
125 pdo.cob_id.w = *pwCobId; |
|
126 pdo.rtr = REQUEST; |
|
127 pdo.len = 0; |
|
128 return canSend(d->canHandle,&pdo); |
126 } |
129 } |
127 } |
130 } |
128 } |
131 } |
129 MSG_ERR(0x1931, "sendPDOrequest : RPDO Index not found : ", RPDOIndex); |
132 MSG_ERR(0x1931, "sendPDOrequest : RPDO Index not found : ", RPDOIndex); |
130 return 0xFF; |
133 return 0xFF; |