From e1c8698be3a6e9c3290606740da43024a7a7ae43 Mon Sep 17 00:00:00 2001 From: William Clark Date: Mon, 5 Dec 2022 14:10:05 +0000 Subject: [PATCH] silly mistake --- core/th7/service.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/th7/service.go b/core/th7/service.go index 8f1c249..9a2cac3 100644 --- a/core/th7/service.go +++ b/core/th7/service.go @@ -93,7 +93,7 @@ func startCacheService(t *TH7Adapter) { cjc_uv = 0.0 } - data[k].Value -= cjc_uv + data[k].Value += cjc_uv } // CJC can not be applied @@ -123,6 +123,12 @@ func startCacheService(t *TH7Adapter) { } + // temp conv if any is applied ... add offset + // offset is specified in the same temperature unit + // as is specified for the channel + // ie if unit = F then the offset counts in unit F also. + data[k].Value += t.cfg.Channels[k].Offset + } }