1
0
Fork 0

CANopen: static analysis: cannot assign 'unsigned16' to narrower essential type 'unsigned8' [MISRA 2012 Rule 10.3, required]

This commit is contained in:
temi54c1l8 2024-06-12 16:29:47 +02:00
parent 0f06b1022d
commit 24065d5751

View file

@ -34,7 +34,7 @@
#else
#include "OD.h"
#define CO_GET_CO(obj) ((uint16_t)(CO_##obj))
#define CO_GET_CNT(obj) ((uint16_t)(OD_CNT_##obj))
#define CO_GET_CNT(obj) (uint8_t)(OD_CNT_##obj)
#define OD_GET(entry, index) OD_ENTRY_##entry
/* Verify parameters from "OD.h" and calculate necessary values for each object: