1
0
Fork 0

CO_SDOclient: static analysis: departure from MISRA switch syntax: missing break or throw from switch-case [MISRA 2012 Rule 16.1, required]

This commit is contained in:
temi54c1l8 2024-06-26 16:25:01 +02:00
parent 41e637cb42
commit 340ba3f84e

View file

@ -189,6 +189,7 @@ static ODR_t OD_write_1280(OD_stream_t *stream, const void *buf,
switch (stream->subIndex) {
case 0: /* Highest sub-index supported */
return ODR_READONLY;
break;
case 1: { /* COB-ID client -> server */
uint32_t COB_ID = CO_getUint32(buf);
@ -241,6 +242,7 @@ static ODR_t OD_write_1280(OD_stream_t *stream, const void *buf,
default:
return ODR_SUB_NOT_EXIST;
break;
}
/* write value to the original location in the Object Dictionary */