File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ void ZigbeeColorDimmableLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_me
73
73
uint16_t light_color_x = (*(uint16_t *)message->attribute .data .value );
74
74
uint16_t light_color_y = getCurrentColorY ();
75
75
// calculate RGB from XY and call setColor()
76
- _current_color = espXYToRgbColor (255 , light_color_x, light_color_y); // TODO: Check if level is correct
76
+ _current_color = espXYToRgbColor (255 , light_color_x, light_color_y); // TODO: Check if level is correct
77
77
lightChanged ();
78
78
return ;
79
79
80
80
} else if (message->attribute .id == ESP_ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_Y_ID && message->attribute .data .type == ESP_ZB_ZCL_ATTR_TYPE_U16) {
81
81
uint16_t light_color_x = getCurrentColorX ();
82
82
uint16_t light_color_y = (*(uint16_t *)message->attribute .data .value );
83
83
// calculate RGB from XY and call setColor()
84
- _current_color = espXYToRgbColor (255 , light_color_x, light_color_y); // TODO: Check if level is correct
84
+ _current_color = espXYToRgbColor (255 , light_color_x, light_color_y); // TODO: Check if level is correct
85
85
lightChanged ();
86
86
return ;
87
87
} else if (message->attribute .id == ESP_ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_HUE_ID && message->attribute .data .type == ESP_ZB_ZCL_ATTR_TYPE_U16) {
You can’t perform that action at this time.
0 commit comments