잘못된 슬라이스 복사로직수정
This commit is contained in:
parent
ca421b372e
commit
128ae98e91
|
@ -64,7 +64,7 @@ func (c *fanControl) StartControl() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!compareFanSpeed(fanSpeedList, newFanSpeedList)) {
|
if (!compareFanSpeed(fanSpeedList, newFanSpeedList)) {
|
||||||
fanSpeedList = newFanSpeedList
|
copy(fanSpeedList, newFanSpeedList)
|
||||||
args := make([]string, 0)
|
args := make([]string, 0)
|
||||||
args = append(args, "raw", "0x3a", "0x01", )
|
args = append(args, "raw", "0x3a", "0x01", )
|
||||||
for _, item := range fanSpeedList {
|
for _, item := range fanSpeedList {
|
||||||
|
@ -79,7 +79,7 @@ func (c *fanControl) StartControl() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
buf := bytes.NewBufferString("")
|
buf := bytes.NewBufferString("")
|
||||||
for _, item := range fanSpeedList {
|
for _, item := range newFanSpeedList {
|
||||||
buf.WriteString(fmt.Sprintf("0x%x", item))
|
buf.WriteString(fmt.Sprintf("0x%x", item))
|
||||||
buf.WriteRune(' ')
|
buf.WriteRune(' ')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue