From b55b3b2b6435405f5d56cbd39c694329af01f286 Mon Sep 17 00:00:00 2001 From: Thomas Popp Date: Tue, 5 Nov 2024 21:34:33 +0100 Subject: [PATCH] wip(protocol): pv status --- AquaMQTT/src/message/HMIMessage.cpp | 4 +--- AquaMQTT/src/task/MQTTTask.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/AquaMQTT/src/message/HMIMessage.cpp b/AquaMQTT/src/message/HMIMessage.cpp index e385489..1d5e90b 100644 --- a/AquaMQTT/src/message/HMIMessage.cpp +++ b/AquaMQTT/src/message/HMIMessage.cpp @@ -79,9 +79,7 @@ bool HMIMessage::isHeatingElementEnabled() const bool HMIMessage::isPVInputActivated() const { - //TODO - //return mData[8] & 0x02; - return false; + return mData[8] & 0x02; } HMISetup HMIMessage::setupMode() const diff --git a/AquaMQTT/src/task/MQTTTask.cpp b/AquaMQTT/src/task/MQTTTask.cpp index a5a86fe..a2649f1 100644 --- a/AquaMQTT/src/task/MQTTTask.cpp +++ b/AquaMQTT/src/task/MQTTTask.cpp @@ -677,7 +677,7 @@ void MQTTTask::updateHMIStatus(bool fullUpdate) if (message.heatingElemOrSetupStateOrPVActiveChanged()) { publishi(HMI_SUBTOPIC, HMI_HEATING_ELEMENT_ENABLED, message.isHeatingElementEnabled()); - // publishi(HMI_SUBTOPIC, HMM_PV_INPUT_ACTIVATED, message.isPVInputActivated()); + publishi(HMI_SUBTOPIC, HMM_PV_INPUT_ACTIVATED, message.isPVInputActivated()); // publishString(HMI_SUBTOPIC, HMI_SETUP_STATE, setupStr(message.setupMode())); }