1
0
Fork 0

CO_NMT_Heartbeat: static analysis: cannot assign 'signed32' to different essential type 'unsigned32' [MISRA 2012 Rule 10.3, required]

This commit is contained in:
temi54c1l8 2024-06-13 11:24:14 +02:00
parent c25fec2176
commit 1da8f44821

View file

@ -120,7 +120,7 @@ CO_ReturnError_t CO_NMT_init(CO_NMT_t *NMT,
NMT->nodeId = nodeId;
NMT->NMTcontrol = NMTcontrol;
NMT->em = em;
NMT->HBproducerTimer = (int32_t)firstHBTime_ms * 1000;
NMT->HBproducerTimer = (uint32_t)firstHBTime_ms * 1000U;
/* get and verify required "Producer heartbeat time" from Object Dict. */
uint16_t HBprodTime_ms;