Skip to content

Commit 40c56b5

Browse files
committed
fix(Zigbee): remove unnecessary space in formatting
1 parent fa53967 commit 40c56b5

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

Diff for: libraries/Zigbee/src/ep/ZigbeeColorDimmerSwitch.cpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@ void ZigbeeColorDimmerSwitch::findCb(esp_zb_zdp_status_t zdo_status, uint16_t ad
7878

7979
// find on_off light endpoint
8080
void ZigbeeColorDimmerSwitch::findEndpoint(esp_zb_zdo_match_desc_req_param_t *cmd_req) {
81-
uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL,
82-
ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL};
83-
esp_zb_zdo_match_desc_req_param_t color_dimmable_light_req = {
84-
.dst_nwk_addr = cmd_req->dst_nwk_addr,
85-
.addr_of_interest = cmd_req->addr_of_interest,
86-
.profile_id = ESP_ZB_AF_HA_PROFILE_ID,
87-
.num_in_clusters = 3,
88-
.num_out_clusters = 3,
89-
.cluster_list = cluster_list,
90-
};
91-
esp_zb_zdo_match_cluster(&color_dimmable_light_req, findCb, &_endpoint);
81+
uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL,
82+
ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL};
83+
esp_zb_zdo_match_desc_req_param_t color_dimmable_light_req = {
84+
.dst_nwk_addr = cmd_req->dst_nwk_addr,
85+
.addr_of_interest = cmd_req->addr_of_interest,
86+
.profile_id = ESP_ZB_AF_HA_PROFILE_ID,
87+
.num_in_clusters = 3,
88+
.num_out_clusters = 3,
89+
.cluster_list = cluster_list,
90+
};
91+
esp_zb_zdo_match_cluster(&color_dimmable_light_req, findCb, &_endpoint);
9292
}
9393

9494
// Methods to control the light

Diff for: libraries/Zigbee/src/ep/ZigbeeSwitch.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ void ZigbeeSwitch::findCb(esp_zb_zdp_status_t zdo_status, uint16_t addr, uint8_t
5050

5151
// find on_off light endpoint
5252
void ZigbeeSwitch::findEndpoint(esp_zb_zdo_match_desc_req_param_t *cmd_req) {
53-
uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_ON_OFF};
54-
esp_zb_zdo_match_desc_req_param_t on_off_req = {
55-
.dst_nwk_addr = cmd_req->dst_nwk_addr,
56-
.addr_of_interest = cmd_req->addr_of_interest,
57-
.profile_id = ESP_ZB_AF_HA_PROFILE_ID,
58-
.num_in_clusters = 1,
59-
.num_out_clusters = 1,
60-
.cluster_list = cluster_list,
61-
};
62-
esp_zb_zdo_match_cluster(&on_off_req, findCb, &_endpoint);
53+
uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_ON_OFF};
54+
esp_zb_zdo_match_desc_req_param_t on_off_req = {
55+
.dst_nwk_addr = cmd_req->dst_nwk_addr,
56+
.addr_of_interest = cmd_req->addr_of_interest,
57+
.profile_id = ESP_ZB_AF_HA_PROFILE_ID,
58+
.num_in_clusters = 1,
59+
.num_out_clusters = 1,
60+
.cluster_list = cluster_list,
61+
};
62+
esp_zb_zdo_match_cluster(&on_off_req, findCb, &_endpoint);
6363
}
6464

6565
// Methods to control the light

Diff for: libraries/Zigbee/src/ep/ZigbeeThermostat.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ void ZigbeeThermostat::findCb(esp_zb_zdp_status_t zdo_status, uint16_t addr, uin
9191
}
9292

9393
void ZigbeeThermostat::findEndpoint(esp_zb_zdo_match_desc_req_param_t *param) {
94-
uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT};
95-
param->profile_id = ESP_ZB_AF_HA_PROFILE_ID;
96-
param->num_in_clusters = 1;
97-
param->num_out_clusters = 0;
98-
param->cluster_list = cluster_list;
99-
esp_zb_zdo_match_cluster(param, findCb, &_endpoint);
94+
uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT};
95+
param->profile_id = ESP_ZB_AF_HA_PROFILE_ID;
96+
param->num_in_clusters = 1;
97+
param->num_out_clusters = 0;
98+
param->cluster_list = cluster_list;
99+
esp_zb_zdo_match_cluster(param, findCb, &_endpoint);
100100
}
101101

102102
void ZigbeeThermostat::zbAttributeRead(uint16_t cluster_id, const esp_zb_zcl_attribute_t *attribute) {

0 commit comments

Comments
 (0)