1
0
Fork 0

Merge pull request #286 from JuPrgn/FixHBCons

Fix HBcons entries count
This commit is contained in:
Janez 2021-04-07 13:10:18 +02:00 committed by GitHub
commit fc99553c8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,8 +140,8 @@ CO_ReturnError_t CO_HBconsumer_init(CO_HBconsumer_t *HBcons,
/* get actual number of monitored nodes */
HBcons->numberOfMonitoredNodes =
OD_1016_HBcons->subEntriesCount < CO_CONFIG_HB_CONS_SIZE ?
OD_1016_HBcons->subEntriesCount : CO_CONFIG_HB_CONS_SIZE;
OD_1016_HBcons->subEntriesCount-1 < CO_CONFIG_HB_CONS_SIZE ?
OD_1016_HBcons->subEntriesCount-1 : CO_CONFIG_HB_CONS_SIZE;
for (uint8_t i = 0; i < HBcons->numberOfMonitoredNodes; i++) {
uint32_t val;