Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.

Commit f4667fe

Browse files
author
gabaxh-2
committed
Added special case for the user temp
1 parent 27915d7 commit f4667fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Comfortstat/things.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,10 @@ func (ua *UnitAsset) processFeedbackLoop() {
433433
ua.Desired_temp = ua.calculateDesiredTemp()
434434
// Only send temperature update when we have a new value.
435435
if (ua.Desired_temp == ua.old_desired_temp) || (ua.userTemp != 0) {
436+
if ua.userTemp != 0 {
437+
ua.old_desired_temp = ua.userTemp
438+
return
439+
}
436440
return
437441
}
438442
// Keep track of previous value

0 commit comments

Comments
 (0)