This commit is contained in:
parent
4afacbe82b
commit
22154f2851
@ -319,14 +319,17 @@ ReturnValue_t Max31865PT1000Handler::interpretDeviceReply(DeviceCommandId_t id,
|
|||||||
switch (id) {
|
switch (id) {
|
||||||
case (Max31865Definitions::REQUEST_CONFIG): {
|
case (Max31865Definitions::REQUEST_CONFIG): {
|
||||||
if (packet[1] != DEFAULT_CONFIG) {
|
if (packet[1] != DEFAULT_CONFIG) {
|
||||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
if(warningSwitch) {
|
||||||
// it propably would be better if we at least try one restart..
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||||
sif::error << "Max31865PT1000Handler: 0x" << std::hex << this->getObjectId()
|
// it propably would be better if we at least try one restart..
|
||||||
<< ": Invalid configuration reply" << std::endl;
|
sif::warning << "Max31865PT1000Handler: 0x" << std::hex << this->getObjectId()
|
||||||
#else
|
<< ": Invalid configuration reply" << std::endl;
|
||||||
sif::printError("Max31865PT1000Handler: %04x: Invalid configuration reply!\n",
|
#else
|
||||||
this->getObjectId());
|
sif::printWarning("Max31865PT1000Handler: %04x: Invalid configuration reply!\n",
|
||||||
#endif
|
this->getObjectId());
|
||||||
|
#endif
|
||||||
|
warningSwitch = false;
|
||||||
|
}
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
// set to true for invalid configs too for now.
|
// set to true for invalid configs too for now.
|
||||||
|
@ -85,6 +85,7 @@ class Max31865PT1000Handler : public DeviceHandlerBase {
|
|||||||
private:
|
private:
|
||||||
uint8_t switchId = 0;
|
uint8_t switchId = 0;
|
||||||
bool instantNormal = true;
|
bool instantNormal = true;
|
||||||
|
bool warningSwitch = true;
|
||||||
|
|
||||||
enum class InternalState {
|
enum class InternalState {
|
||||||
NONE,
|
NONE,
|
||||||
|
2
tmtc
2
tmtc
@ -1 +1 @@
|
|||||||
Subproject commit 46c327101e24d61452ddb1cd3dd09cab87674abb
|
Subproject commit cb479cc2f48ed15668a5b223529dc1cf1ee5b6ad
|
Loading…
Reference in New Issue
Block a user