Skip to content

Commit

Permalink
fix: color change turns cw devices off
Browse files Browse the repository at this point in the history
Remove cold warm (cw) bits from the color command bit mask to hopefully
keep the cw devices from being turned off.

Related to #2
  • Loading branch information
MoonLiightz committed Apr 17, 2021
1 parent e2f2a43 commit 582228f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
}
Expand Down

0 comments on commit 582228f

Please sign in to comment.