1
0
Fork 0

CO_LSSslave: static analysis: an unsigned value and a signed value cannot be used together as operands to - [MISRA 2012 Rule 10.4, required]

This commit is contained in:
temi54c1l8 2024-06-14 08:13:08 +02:00
parent d4b4d29f0b
commit 6990e11e7f

View file

@ -165,7 +165,7 @@ static void CO_LSSslave_receive(void *object, void *msg)
#if ((CO_CONFIG_LSS) & CO_CONFIG_LSS_SLAVE_FASTSCAN_DIRECT_RESPOND) != 0
LSSslave->TXbuff->data[0] = CO_LSS_IDENT_SLAVE;
(void)memset(&LSSslave->TXbuff->data[1], 0,
sizeof(LSSslave->TXbuff->data) - 1);
sizeof(LSSslave->TXbuff->data) - 1U);
(void)CO_CANsend(LSSslave->CANdevTx, LSSslave->TXbuff);
#else
LSSslave->service = cs;