Fixed direct use of msg->ident to use driver abstraction function instead, since not all drivers employ the same msg struct
This commit is contained in:
parent
10cf9a30b0
commit
4ad282d716
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ static void CO_EM_receive(void *object, const CO_CANrxMsg_t *msg){
|
|||
if(em!=NULL && em->pFunctSignalRx!=NULL){
|
||||
CO_memcpySwap2(&errorCode, &msg->data[0]);
|
||||
CO_memcpySwap4(&infoCode, &msg->data[4]);
|
||||
em->pFunctSignalRx(msg->ident & 0x07FFU,
|
||||
em->pFunctSignalRx(CO_CANrxMsg_readIdent(msg),
|
||||
errorCode,
|
||||
msg->data[2],
|
||||
msg->data[3],
|
||||
|
|
|
|||
Loading…
Reference in a new issue