From dc3cf84952beafec5af4d5748f0f14bf4eb90819 Mon Sep 17 00:00:00 2001 From: Frab012 Date: Mon, 13 Jul 2026 12:24:41 +0200 Subject: [PATCH] Fix HB state query for consecutive boot messages --- 301/CO_HBconsumer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/301/CO_HBconsumer.c b/301/CO_HBconsumer.c index ca68f65..1e6f3aa 100644 --- a/301/CO_HBconsumer.c +++ b/301/CO_HBconsumer.c @@ -327,11 +327,9 @@ CO_HBconsumer_process(CO_HBconsumer_t* HBcons, bool_t NMTisPreOrOperational, uin monitoredNode->functSignalObjectRemoteReset); } #endif - if (monitoredNode->HBstate == CO_HBconsumer_ACTIVE) { + if (monitoredNode->HBstate != CO_HBconsumer_UNKOWN) { CO_errorReport(HBcons->em, CO_EM_HB_CONSUMER_REMOTE_RESET, CO_EMC_HEARTBEAT, i); monitoredNode->HBstate = CO_HBconsumer_RESTART; - } else { - monitoredNode->HBstate = CO_HBconsumer_UNKNOWN; } } else {