From 128ae98e91a135ccf692287b9cf83cd8b0330f0a Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Mon, 11 Sep 2017 01:09:45 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20=EC=8A=AC?= =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EC=8A=A4=20=EB=B3=B5=EC=82=AC=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consumer/speed_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consumer/speed_controller.go b/consumer/speed_controller.go index a26cc60..9544fe1 100644 --- a/consumer/speed_controller.go +++ b/consumer/speed_controller.go @@ -64,7 +64,7 @@ func (c *fanControl) StartControl() { } } if (!compareFanSpeed(fanSpeedList, newFanSpeedList)) { - fanSpeedList = newFanSpeedList + copy(fanSpeedList, newFanSpeedList) args := make([]string, 0) args = append(args, "raw", "0x3a", "0x01", ) for _, item := range fanSpeedList { @@ -79,7 +79,7 @@ func (c *fanControl) StartControl() { return } buf := bytes.NewBufferString("") - for _, item := range fanSpeedList { + for _, item := range newFanSpeedList { buf.WriteString(fmt.Sprintf("0x%x", item)) buf.WriteRune(' ') }