Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
fix set_flowtemp (757)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP authored Apr 9, 2021
1 parent c33dab3 commit 2b8f51c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/devices/boiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1269,12 +1269,9 @@ bool Boiler::set_flow_temp(const char * value, const int8_t id) {
}

LOG_INFO(F("Setting boiler flow temperature to %d C"), v);
if (get_toggle_fetch(EMS_TYPE_UBAParametersPlus)) {
write_command(EMS_TYPE_UBAParameterWWPlus, 6, v, EMS_TYPE_UBAParameterWWPlus);
} else {
write_command(EMS_TYPE_UBAFlags, 3, v, 0x34); // for i9000, see #397
write_command(EMS_TYPE_UBAParameterWW, 2, v, EMS_TYPE_UBAParameterWW); // read seltemp back
}
// some boiler have it in 0x1A, some in 0x35, but both telegrams are sometimes writeonly
write_command(EMS_TYPE_UBASetPoints, 0, v, EMS_TYPE_UBASetPoints);
write_command(0x35, 3, v, 0x35);

return true;
}
Expand Down

0 comments on commit 2b8f51c

Please sign in to comment.