1
0
Fork 0

CANopen: 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-27 13:05:00 +02:00
parent 4ae66f9839
commit f6a4718428

View file

@ -1124,7 +1124,7 @@ CO_ReturnError_t CO_CANopenInit(CO_t *co,
}
#if ((CO_CONFIG_SDO_CLI) & CO_CONFIG_SDO_CLI_ENABLE) != 0
if (CO_GET_CNT(SDO_CLI) > 0) {
if (CO_GET_CNT(SDO_CLI) > 0U) {
OD_entry_t *SDOcliPar = OD_GET(H1280, OD_H1280_SDO_CLIENT_1_PARAM);
for (uint16_t i = 0; i < CO_GET_CNT(SDO_CLI); i++) {
err = CO_SDOclient_init(&co->SDOclient[i],