switched to rgb transfer
This commit is contained in:
4
ledd.go
4
ledd.go
@@ -474,9 +474,9 @@ func (manager *ClientManager) receive(client *Client) {
|
||||
// log.Debugf("[%s] Set %s to %s", client.socket.RemoteAddr(), led.Name, colorful.Hcl(msg.MSetLed.Colour.Hue, msg.MSetLed.Colour.Chroma, msg.MSetLed.Colour.Light))
|
||||
|
||||
if pLED.Color == nil {
|
||||
led.color <- colorful.Hcl(msg.MSetLed.Colour.Hue, msg.MSetLed.Colour.Chroma, msg.MSetLed.Colour.Light)
|
||||
led.color <- colorful.Color{R: msg.MSetLed.Colour.Red, G: msg.MSetLed.Colour.Green, B: msg.MSetLed.Colour.Blue}
|
||||
} else {
|
||||
led.color <- colorful.Hcl(pLED.Color.Hue, pLED.Color.Chroma, pLED.Color.Light)
|
||||
led.color <- colorful.Color{R: pLED.Color.Red, G: pLED.Color.Green, B: pLED.Color.Blue}
|
||||
}
|
||||
}
|
||||
case *ledd.ClientWrapperMessage_MSetDirect:
|
||||
|
2
proto
2
proto
Submodule proto updated: b0f65bb09a...9a2fd0ad06
Reference in New Issue
Block a user