diff --git a/mission/devices/Max31865PT1000Handler.cpp b/mission/devices/Max31865PT1000Handler.cpp index 809e669b..259eca6c 100644 --- a/mission/devices/Max31865PT1000Handler.cpp +++ b/mission/devices/Max31865PT1000Handler.cpp @@ -319,14 +319,17 @@ ReturnValue_t Max31865PT1000Handler::interpretDeviceReply(DeviceCommandId_t id, switch (id) { case (Max31865Definitions::REQUEST_CONFIG): { if (packet[1] != DEFAULT_CONFIG) { -#if FSFW_CPP_OSTREAM_ENABLED == 1 - // it propably would be better if we at least try one restart.. - sif::error << "Max31865PT1000Handler: 0x" << std::hex << this->getObjectId() - << ": Invalid configuration reply" << std::endl; -#else - sif::printError("Max31865PT1000Handler: %04x: Invalid configuration reply!\n", - this->getObjectId()); -#endif + if(warningSwitch) { + #if FSFW_CPP_OSTREAM_ENABLED == 1 + // it propably would be better if we at least try one restart.. + sif::warning << "Max31865PT1000Handler: 0x" << std::hex << this->getObjectId() + << ": Invalid configuration reply" << std::endl; + #else + sif::printWarning("Max31865PT1000Handler: %04x: Invalid configuration reply!\n", + this->getObjectId()); + #endif + warningSwitch = false; + } return HasReturnvaluesIF::RETURN_OK; } // set to true for invalid configs too for now. diff --git a/mission/devices/Max31865PT1000Handler.h b/mission/devices/Max31865PT1000Handler.h index 44d7a2e7..85cedbd6 100644 --- a/mission/devices/Max31865PT1000Handler.h +++ b/mission/devices/Max31865PT1000Handler.h @@ -85,6 +85,7 @@ class Max31865PT1000Handler : public DeviceHandlerBase { private: uint8_t switchId = 0; bool instantNormal = true; + bool warningSwitch = true; enum class InternalState { NONE, diff --git a/tmtc b/tmtc index 46c32710..cb479cc2 160000 --- a/tmtc +++ b/tmtc @@ -1 +1 @@ -Subproject commit 46c327101e24d61452ddb1cd3dd09cab87674abb +Subproject commit cb479cc2f48ed15668a5b223529dc1cf1ee5b6ad