File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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
7373 uint16_t light_color_x = (*(uint16_t *)message->attribute .data .value );
7474 uint16_t light_color_y = getCurrentColorY ();
7575 // 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
7777 lightChanged ();
7878 return ;
7979
8080 } else if (message->attribute .id == ESP_ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_Y_ID && message->attribute .data .type == ESP_ZB_ZCL_ATTR_TYPE_U16) {
8181 uint16_t light_color_x = getCurrentColorX ();
8282 uint16_t light_color_y = (*(uint16_t *)message->attribute .data .value );
8383 // 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
8585 lightChanged ();
8686 return ;
8787 } 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