Skip to content

Commit

Permalink
wip(protocol): pv status
Browse files Browse the repository at this point in the history
  • Loading branch information
tspopp committed Nov 5, 2024
1 parent 79c3eaf commit b55b3b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions AquaMQTT/src/message/HMIMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion AquaMQTT/src/task/MQTTTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}

Expand Down

0 comments on commit b55b3b2

Please sign in to comment.