1
0
Fork 0

CO_HBconsumer: static analysis: local variable 'data' could be pointer to const [MISRA 2012 Rule 8.13, advisory]

This commit is contained in:
temi54c1l8 2024-06-14 11:03:51 +02:00
parent 41c9e742f8
commit 8cc4dc1601

View file

@ -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. */