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 + } }