From 582228fe4cf8de5ce37cc133ae76b24ffb8cc10f Mon Sep 17 00:00:00 2001 From: Patrick Stebbe Date: Sat, 17 Apr 2021 18:34:21 +0200 Subject: [PATCH] fix: color change turns cw devices off Remove cold warm (cw) bits from the color command bit mask to hopefully keep the cw devices from being turned off. Related to #2 --- pkg/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller.go b/pkg/controller.go index 020e585..4ef98a5 100644 --- a/pkg/controller.go +++ b/pkg/controller.go @@ -21,7 +21,7 @@ func New(ip net.IP, port uint16) (*Controller, error) { command: command{ on: []byte{0x71, 0x23, 0x94}, off: []byte{0x71, 0x24, 0x95}, - color: []byte{0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, + color: []byte{0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, state: []byte{0x81, 0x8a, 0x8b, 0x96}, }, }