From c4e9f3c3282bdfba27aebbdccff49a52b724bbc4 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Thu, 10 Oct 2024 13:18:32 +0200 Subject: [PATCH] fix dhw circuits #2079 --- src/devices/thermostat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/thermostat.h b/src/devices/thermostat.h index dc5ff593e..3643d61b7 100644 --- a/src/devices/thermostat.h +++ b/src/devices/thermostat.h @@ -231,7 +231,7 @@ class Thermostat : public EMSdevice { } inline uint8_t id2dhw(const int8_t id) const { - return id - DeviceValueTAG::TAG_DHW1; + return id - DeviceValueTAG::TAG_DHW1 + 1; } // each thermostat has a list of heating controller type IDs for reading and writing