1
0
Fork 0

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:
Miles Simpson 2019-11-15 14:38:54 -08:00
parent 10cf9a30b0
commit 4ad282d716

View file

@ -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],