From 4ad282d7163ea776c1cd7a91304bf5681af20be9 Mon Sep 17 00:00:00 2001 From: Miles Simpson Date: Fri, 15 Nov 2019 14:38:54 -0800 Subject: [PATCH] Fixed direct use of msg->ident to use driver abstraction function instead, since not all drivers employ the same msg struct --- stack/CO_Emergency.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/CO_Emergency.c b/stack/CO_Emergency.c index 7dd1a08..15a7af0 100644 --- a/stack/CO_Emergency.c +++ b/stack/CO_Emergency.c @@ -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],