Skip to content

Commit 034533c

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 8fbf1f9 commit 034533c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

libraries/Zigbee/examples/Zigbee_Binary_Input_Output/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Currently, this example supports the following targets.
1212
## Binary Input/Output Functions
1313

1414
* The example implements three binary devices:
15-
- **Binary Fan Device (Endpoint 1)**:
15+
- **Binary Fan Device (Endpoint 1)**:
1616
- Binary Input: HVAC Fan Status - Reports the current state of a fan
1717
- Binary Output: HVAC Fan - Controls the fan switch with callback function
1818
- **Binary Zone Device (Endpoint 2)**:

libraries/Zigbee/src/ep/ZigbeeBinary.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ bool ZigbeeBinary::addBinaryOutput() {
6363
"Binary Output";
6464
uint32_t application_type = 0x00000000 | (0x04 << 24); // Group ID 0x04
6565

66-
esp_err_t ret = esp_zb_binary_output_cluster_add_attr(esp_zb_binary_output_cluster, ESP_ZB_ZCL_ATTR_BINARY_OUTPUT_DESCRIPTION_ID, (void *)default_description);
66+
esp_err_t ret =
67+
esp_zb_binary_output_cluster_add_attr(esp_zb_binary_output_cluster, ESP_ZB_ZCL_ATTR_BINARY_OUTPUT_DESCRIPTION_ID, (void *)default_description);
6768
if (ret != ESP_OK) {
6869
log_e("Failed to add description attribute: 0x%x: %s", ret, esp_err_to_name(ret));
6970
return false;

libraries/Zigbee/src/ep/ZigbeeBinary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ZigbeeBinary : public ZigbeeEP {
8989
bool setBinaryInputDescription(const char *description);
9090

9191
// Set the application type and description for the binary output
92-
bool setBinaryOutputApplication(uint32_t application_type); // Check esp_zigbee_zcl_binary_output.h for application type values
92+
bool setBinaryOutputApplication(uint32_t application_type); // Check esp_zigbee_zcl_binary_output.h for application type values
9393
bool setBinaryOutputDescription(const char *description);
9494

9595
// Use to set a cb function to be called on binary output change

0 commit comments

Comments
 (0)