CO_Emergency: static analysis: argument 1 of type 'uint8_t [8]' is not compatible with argument 2 of type 'uint32_t *' (aka 'unsigned int *') in call to function 'memcpy'
This commit is contained in:
parent
be2a4690d6
commit
9bffb7d789
1 changed files with 1 additions and 1 deletions
|
|
@ -653,7 +653,7 @@ void CO_EM_process(CO_EM_t *em,
|
|||
em->fifo[fifoPpPtr].msg |= (uint32_t) errorRegister << 16;
|
||||
|
||||
/* send emergency message */
|
||||
(void)memcpy(em->CANtxBuff->data, &em->fifo[fifoPpPtr].msg,
|
||||
(void)memcpy((void *)em->CANtxBuff->data, (void *)&em->fifo[fifoPpPtr].msg,
|
||||
sizeof(em->CANtxBuff->data));
|
||||
(void)CO_CANsend(em->CANdevTx, em->CANtxBuff);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue