From 8c9d215672d15d327159cb131e9e0527de1e52d7 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 23 Jan 2023 14:15:32 +0100 Subject: [PATCH 1/2] this fixed the unrequested reply --- mission/devices/Max31865EiveHandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mission/devices/Max31865EiveHandler.cpp b/mission/devices/Max31865EiveHandler.cpp index 433f7b58..33f566ee 100644 --- a/mission/devices/Max31865EiveHandler.cpp +++ b/mission/devices/Max31865EiveHandler.cpp @@ -21,6 +21,7 @@ void Max31865EiveHandler::doStartUp() { transitionOk = false; } if ((state == InternalState::ON or state == InternalState::ACTIVE) and transitionOk) { + updatePeriodicReply(true, EiveMax31855::RtdCommands::EXCHANGE_SET_ID); if (instantNormal) { setMode(MODE_NORMAL); } else { @@ -36,6 +37,7 @@ void Max31865EiveHandler::doShutDown() { transitionOk = false; } if (state == InternalState::INACTIVE and transitionOk) { + updatePeriodicReply(false, EiveMax31855::RtdCommands::EXCHANGE_SET_ID); setMode(MODE_OFF); } } -- 2.43.0 From 95299cf5223b068f6b6d000260b7afb42e5a5227 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 23 Jan 2023 14:18:12 +0100 Subject: [PATCH 2/2] remove duplicate code --- mission/devices/Max31865EiveHandler.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/mission/devices/Max31865EiveHandler.cpp b/mission/devices/Max31865EiveHandler.cpp index 33f566ee..3fcd0f32 100644 --- a/mission/devices/Max31865EiveHandler.cpp +++ b/mission/devices/Max31865EiveHandler.cpp @@ -21,7 +21,6 @@ void Max31865EiveHandler::doStartUp() { transitionOk = false; } if ((state == InternalState::ON or state == InternalState::ACTIVE) and transitionOk) { - updatePeriodicReply(true, EiveMax31855::RtdCommands::EXCHANGE_SET_ID); if (instantNormal) { setMode(MODE_NORMAL); } else { -- 2.43.0