1
0
Fork 0

잘못된 코드 수정4

This commit is contained in:
Sangbum Kim 2017-09-13 00:59:31 +09:00
parent 219d5d7987
commit e49b6d212d
1 changed files with 1 additions and 3 deletions

View File

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