CO_HBconsumer: static analysis: local variable 'data' could be pointer to const [MISRA 2012 Rule 8.13, advisory]
This commit is contained in:
parent
41c9e742f8
commit
8cc4dc1601
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@
|
|||
static void CO_HBcons_receive(void *object, void *msg) {
|
||||
CO_HBconsNode_t *HBconsNode = object;
|
||||
uint8_t DLC = CO_CANrxMsg_readDLC(msg);
|
||||
uint8_t *data = CO_CANrxMsg_readData(msg);
|
||||
const uint8_t *data = CO_CANrxMsg_readData(msg);
|
||||
|
||||
if (DLC == 1U) {
|
||||
/* copy data and set 'new message' flag. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue