use config constant
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
Robin Müller 2023-04-14 19:30:40 +02:00
parent 62d18826f1
commit 8cf9dd9136
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -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) {