From 8cf9dd91369d025d5d6be7f9c1b2cd237f331e35 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 14 Apr 2023 19:30:40 +0200 Subject: [PATCH] use config constant --- mission/system/EiveSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mission/system/EiveSystem.cpp b/mission/system/EiveSystem.cpp index 142034dc..b12f95f4 100644 --- a/mission/system/EiveSystem.cpp +++ b/mission/system/EiveSystem.cpp @@ -282,7 +282,7 @@ void EiveSystem::pdecRecoveryLogic() { ptmeResetWasAttempted = false; } if (frameDirtyCheckCd.hasTimedOut()) { - if (frameDirtyErrorCounter >= 4) { + if (frameDirtyErrorCounter >= FRAME_DIRTY_COM_REBOOT_LIMIT) { // If a PTME reset was already attempted and there is still an issue receiving TC frames, // reboot the system. if (ptmeResetWasAttempted) {