silly mistake

This commit is contained in:
William Clark 2022-12-05 14:10:05 +00:00
parent 257ba10abe
commit e1c8698be3

View File

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