Skip to content

Commit 93c5e9f

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 3b2f39a commit 93c5e9f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

libraries/Zigbee/src/ZigbeeCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
393393
log_d("Device not bound to endpoint %d and it is free to bound!", (*it)->getEndpoint());
394394
(*it)->findEndpoint(&cmd_req);
395395
log_d("Endpoint %d is searching for device", (*it)->getEndpoint());
396-
if(!Zigbee.allowMultiEndpointBinding()) { // If multi endpoint binding is not allowed, break the loop to keep backwards compatibility
396+
if (!Zigbee.allowMultiEndpointBinding()) { // If multi endpoint binding is not allowed, break the loop to keep backwards compatibility
397397
break;
398398
}
399399
}
@@ -429,7 +429,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
429429
log_d("Device not bound to endpoint %d and it is free to bound!", (*it)->getEndpoint());
430430
(*it)->findEndpoint(&cmd_req);
431431
log_d("Endpoint %d is searching for device", (*it)->getEndpoint());
432-
if(!Zigbee.allowMultiEndpointBinding()) { // If multi endpoint binding is not allowed, break the loop to keep backwards compatibility
432+
if (!Zigbee.allowMultiEndpointBinding()) { // If multi endpoint binding is not allowed, break the loop to keep backwards compatibility
433433
break;
434434
}
435435
}

libraries/Zigbee/src/ZigbeeCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class ZigbeeCore {
203203
bool allowMultiEndpointBinding() {
204204
return _allow_multi_endpoint_binding;
205205
}
206-
206+
207207
// Set global default response callback
208208
void onGlobalDefaultResponse(void (*callback)(zb_cmd_type_t resp_to_cmd, esp_zb_zcl_status_t status, uint8_t endpoint, uint16_t cluster)) {
209209
_global_default_response_cb = callback;

libraries/Zigbee/src/ZigbeeEP.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ class ZigbeeEP {
149149
// list of all handlers function calls, to be override by EPs implementation
150150
virtual void zbAttributeSet(const esp_zb_zcl_set_attr_value_message_t *message) {};
151151
virtual void zbAttributeRead(uint16_t cluster_id, const esp_zb_zcl_attribute_t *attribute, uint8_t src_endpoint, esp_zb_zcl_addr_t src_address) {};
152-
virtual void zbWriteAttributeResponse(uint16_t cluster_id, uint16_t attribute_id, esp_zb_zcl_status_t status, uint8_t src_endpoint, esp_zb_zcl_addr_t src_address) {};
152+
virtual void
153+
zbWriteAttributeResponse(uint16_t cluster_id, uint16_t attribute_id, esp_zb_zcl_status_t status, uint8_t src_endpoint, esp_zb_zcl_addr_t src_address) {};
153154
virtual void zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute); //already implemented
154155
virtual void zbIdentify(const esp_zb_zcl_set_attr_value_message_t *message);
155156
virtual void zbWindowCoveringMovementCmd(const esp_zb_zcl_window_covering_movement_message_t *message) {};

libraries/Zigbee/src/ZigbeeHandlers.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ static esp_err_t zb_action_handler(esp_zb_core_action_callback_id_t callback_id,
7373
case ESP_ZB_CORE_OTA_UPGRADE_QUERY_IMAGE_RESP_CB_ID:
7474
ret = zb_ota_upgrade_query_image_resp_handler((esp_zb_zcl_ota_upgrade_query_image_resp_message_t *)message);
7575
break;
76-
case ESP_ZB_CORE_CMD_DEFAULT_RESP_CB_ID: ret = zb_cmd_default_resp_handler((esp_zb_zcl_cmd_default_resp_message_t *)message); break;
76+
case ESP_ZB_CORE_CMD_DEFAULT_RESP_CB_ID: ret = zb_cmd_default_resp_handler((esp_zb_zcl_cmd_default_resp_message_t *)message); break;
7777
case ESP_ZB_CORE_CMD_WRITE_ATTR_RESP_CB_ID: ret = zb_cmd_write_attr_resp_handler((esp_zb_zcl_cmd_write_attr_resp_message_t *)message); break;
78-
default: log_w("Receive unhandled Zigbee action(0x%x) callback", callback_id); break;
78+
default: log_w("Receive unhandled Zigbee action(0x%x) callback", callback_id); break;
7979
}
8080
return ret;
8181
}
@@ -189,11 +189,11 @@ static esp_err_t zb_cmd_write_attr_resp_handler(const esp_zb_zcl_cmd_write_attr_
189189
if (message->info.dst_endpoint == (*it)->getEndpoint()) {
190190
esp_zb_zcl_write_attr_resp_variable_t *variable = message->variables;
191191
while (variable) {
192-
log_v(
193-
"Write attribute response: status(%d), cluster(0x%x), attribute(0x%x)", variable->status, message->info.cluster, variable->attribute_id
194-
);
192+
log_v("Write attribute response: status(%d), cluster(0x%x), attribute(0x%x)", variable->status, message->info.cluster, variable->attribute_id);
195193
if (variable->status == ESP_ZB_ZCL_STATUS_SUCCESS) {
196-
(*it)->zbWriteAttributeResponse(message->info.cluster, variable->attribute_id, variable->status, message->info.src_endpoint, message->info.src_address);
194+
(*it)->zbWriteAttributeResponse(
195+
message->info.cluster, variable->attribute_id, variable->status, message->info.src_endpoint, message->info.src_address
196+
);
197197
}
198198
variable = variable->next;
199199
}
@@ -202,7 +202,6 @@ static esp_err_t zb_cmd_write_attr_resp_handler(const esp_zb_zcl_cmd_write_attr_
202202
return ESP_OK;
203203
}
204204

205-
206205
static esp_err_t zb_configure_report_resp_handler(const esp_zb_zcl_cmd_config_report_resp_message_t *message) {
207206
if (!message) {
208207
log_e("Empty message");

0 commit comments

Comments
 (0)