@@ -47,7 +47,7 @@ void ZigbeeColorDimmableLight::calculateRGB(uint16_t x, uint16_t y, uint8_t &red
47
47
blue = (uint8_t )(b * (float )255 );
48
48
}
49
49
50
- // set attribude method -> methon overriden in child class
50
+ // set attribute method -> method overridden in child class
51
51
void ZigbeeColorDimmableLight::zbAttributeSet (const esp_zb_zcl_set_attr_value_message_t *message) {
52
52
// check the data and call right method
53
53
if (message->info .cluster == ESP_ZB_ZCL_CLUSTER_ID_ON_OFF) {
@@ -58,7 +58,7 @@ void ZigbeeColorDimmableLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_me
58
58
}
59
59
return ;
60
60
} else {
61
- log_w (" Recieved message ignored. Attribute ID: %d not supported for On/Off Light" , message->attribute .id );
61
+ log_w (" Received message ignored. Attribute ID: %d not supported for On/Off Light" , message->attribute .id );
62
62
}
63
63
} else if (message->info .cluster == ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL) {
64
64
if (message->attribute .id == ESP_ZB_ZCL_ATTR_LEVEL_CONTROL_CURRENT_LEVEL_ID && message->attribute .data .type == ESP_ZB_ZCL_ATTR_TYPE_U8) {
@@ -68,7 +68,7 @@ void ZigbeeColorDimmableLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_me
68
68
}
69
69
return ;
70
70
} else {
71
- log_w (" Recieved message ignored. Attribute ID: %d not supported for Level Control" , message->attribute .id );
71
+ log_w (" Received message ignored. Attribute ID: %d not supported for Level Control" , message->attribute .id );
72
72
// TODO: implement more attributes -> includes/zcl/esp_zigbee_zcl_level.h
73
73
}
74
74
} else if (message->info .cluster == ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL) {
@@ -96,10 +96,10 @@ void ZigbeeColorDimmableLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_me
96
96
lightChanged ();
97
97
return ;
98
98
} else {
99
- log_w (" Recieved message ignored. Attribute ID: %d not supported for Color Control" , message->attribute .id );
99
+ log_w (" Received message ignored. Attribute ID: %d not supported for Color Control" , message->attribute .id );
100
100
}
101
101
} else {
102
- log_w (" Recieved message ignored. Cluster ID: %d not supported for Color dimmable Light" , message->info .cluster );
102
+ log_w (" Received message ignored. Cluster ID: %d not supported for Color dimmable Light" , message->info .cluster );
103
103
}
104
104
}
105
105
0 commit comments