some bugfixes
This commit is contained in:
parent
7ea6f8b3e4
commit
ec4cbc1e7c
2 changed files with 3 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ public class ZigbeeColorConfig extends ZigbeeHalEventDeviceConfig implements Hal
|
|||
return null;
|
||||
|
||||
float[] cieXYZ = ((ColorEventData) data).getCieXYZ();
|
||||
return new MoveToColorCommand((int) cieXYZ[0], (int) cieXYZ[1], 1);
|
||||
return new MoveToColorCommand((int) (cieXYZ[0] * 65536), (int) (cieXYZ[2] * 65536), 1);
|
||||
}
|
||||
|
||||
// --------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue