From e49b6d212d4346d85a94245e40c6abce7b1e11e9 Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Wed, 13 Sep 2017 00:59:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=954?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consumer/speed_controller.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/consumer/speed_controller.go b/consumer/speed_controller.go index a741fee..1500b3d 100644 --- a/consumer/speed_controller.go +++ b/consumer/speed_controller.go @@ -58,9 +58,7 @@ func (c *fanControl) StartControl() { go c.applyFanspeed(pastFanSpeedList) } case changedSpeed := <-c.fanSpeedConsumer: - if changedSpeed.Changed { - newFanSpeedList[changedSpeed.Id] = changedSpeed.FanSpeed - } + newFanSpeedList[changedSpeed.Id] = changedSpeed.FanSpeed case <-c.handler.Done(): return }