From 03371041733f611370a2a969f244984ecdb54405 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 7 Sep 2023 16:09:43 +0200 Subject: [PATCH] another small bugfix --- mission/acs/SusHandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mission/acs/SusHandler.cpp b/mission/acs/SusHandler.cpp index f61dc3a0..4b9778e5 100644 --- a/mission/acs/SusHandler.cpp +++ b/mission/acs/SusHandler.cpp @@ -102,9 +102,8 @@ ReturnValue_t SusHandler::interpretDeviceReply(DeviceCommandId_t id, const uint8 } else if (invalidMsgCounter == susMax1227::MAX_INVALID_MSG_COUNT) { triggerEvent(DeviceHandlerIF::DEVICE_WANTS_HARD_REBOOT); waitingForRecovery = true; - } else { - invalidMsgCounter++; } + invalidMsgCounter++; dataset.setValidity(false, true); dataset.tempC = thermal::INVALID_TEMPERATURE; std::memset(dataset.channels.value, 0, sizeof(dataset.channels.value));