잘못된 코드 수정4
This commit is contained in:
parent
219d5d7987
commit
e49b6d212d
|
@ -58,9 +58,7 @@ func (c *fanControl) StartControl() {
|
||||||
go c.applyFanspeed(pastFanSpeedList)
|
go c.applyFanspeed(pastFanSpeedList)
|
||||||
}
|
}
|
||||||
case changedSpeed := <-c.fanSpeedConsumer:
|
case changedSpeed := <-c.fanSpeedConsumer:
|
||||||
if changedSpeed.Changed {
|
newFanSpeedList[changedSpeed.Id] = changedSpeed.FanSpeed
|
||||||
newFanSpeedList[changedSpeed.Id] = changedSpeed.FanSpeed
|
|
||||||
}
|
|
||||||
case <-c.handler.Done():
|
case <-c.handler.Done():
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue