Skip to content

Commit 6bc971c

Browse files
committed
fix(zigbee): fix formatting of defines
1 parent a7e2e64 commit 6bc971c

File tree

3 files changed

+54
-54
lines changed

3 files changed

+54
-54
lines changed

Diff for: libraries/Zigbee/src/ep/ZigbeeCarbonDioxideSensor.h

+18-18
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
#include "ha/esp_zigbee_ha_standard.h"
1111

1212
// clang-format off
13-
#define ZIGBEE_DEFAULT_CARBON_DIOXIDE_SENSOR_CONFIG() \
14-
{ \
15-
.basic_cfg = \
16-
{ \
17-
.zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18-
.power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19-
}, \
20-
.identify_cfg = \
21-
{ \
22-
.identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23-
}, \
24-
.carbon_dioxide_meas_cfg = \
25-
{ \
26-
.measured_value = 0.0, \
27-
.min_measured_value = 0.0, \
28-
.max_measured_value = 1.0, \
29-
}, \
30-
}
13+
#define ZIGBEE_DEFAULT_CARBON_DIOXIDE_SENSOR_CONFIG() \
14+
{ \
15+
.basic_cfg = \
16+
{ \
17+
.zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18+
.power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19+
}, \
20+
.identify_cfg = \
21+
{ \
22+
.identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23+
}, \
24+
.carbon_dioxide_meas_cfg = \
25+
{ \
26+
.measured_value = 0.0, \
27+
.min_measured_value = 0.0, \
28+
.max_measured_value = 1.0, \
29+
}, \
30+
}
3131
// clang-format on
3232

3333
typedef struct zigbee_carbon_dioxide_sensor_cfg_s {

Diff for: libraries/Zigbee/src/ep/ZigbeeFlowSensor.h

+18-18
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
#include "ha/esp_zigbee_ha_standard.h"
1111

1212
// clang-format off
13-
#define ZIGBEE_DEFAULT_FLOW_SENSOR_CONFIG() \
14-
{ \
15-
.basic_cfg = \
16-
{ \
17-
.zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18-
.power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19-
}, \
20-
.identify_cfg = \
21-
{ \
22-
.identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23-
}, \
24-
.flow_meas_cfg = \
25-
{ \
26-
.measured_value = 0, \
27-
.min_value = 0, \
28-
.max_value = 0x7FFF, \
29-
}, \
30-
}
13+
#define ZIGBEE_DEFAULT_FLOW_SENSOR_CONFIG() \
14+
{ \
15+
.basic_cfg = \
16+
{ \
17+
.zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18+
.power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19+
}, \
20+
.identify_cfg = \
21+
{ \
22+
.identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23+
}, \
24+
.flow_meas_cfg = \
25+
{ \
26+
.measured_value = 0, \
27+
.min_value = 0, \
28+
.max_value = 0x7FFF, \
29+
}, \
30+
}
3131
// clang-format on
3232

3333
typedef struct zigbee_flow_sensor_cfg_s {

Diff for: libraries/Zigbee/src/ep/ZigbeeOccupancySensor.h

+18-18
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
#include "ha/esp_zigbee_ha_standard.h"
1111

1212
// clang-format off
13-
#define ZIGBEE_DEFAULT_OCCUPANCY_SENSOR_CONFIG() \
14-
{ \
15-
.basic_cfg = \
16-
{ \
17-
.zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18-
.power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19-
}, \
20-
.identify_cfg = \
21-
{ \
22-
.identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23-
}, \
24-
.occupancy_meas_cfg = \
25-
{ \
26-
.occupancy = ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_UNOCCUPIED, \
27-
.sensor_type = ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_SENSOR_TYPE_PIR, \
28-
.sensor_type_bitmap = (1 << ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_SENSOR_TYPE_PIR), \
29-
}, \
30-
}
13+
#define ZIGBEE_DEFAULT_OCCUPANCY_SENSOR_CONFIG() \
14+
{ \
15+
.basic_cfg = \
16+
{ \
17+
.zcl_version = ESP_ZB_ZCL_BASIC_ZCL_VERSION_DEFAULT_VALUE, \
18+
.power_source = ESP_ZB_ZCL_BASIC_POWER_SOURCE_DEFAULT_VALUE, \
19+
}, \
20+
.identify_cfg = \
21+
{ \
22+
.identify_time = ESP_ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE, \
23+
}, \
24+
.occupancy_meas_cfg = \
25+
{ \
26+
.occupancy = ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_UNOCCUPIED, \
27+
.sensor_type = ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_SENSOR_TYPE_PIR, \
28+
.sensor_type_bitmap = (1 << ESP_ZB_ZCL_OCCUPANCY_SENSING_OCCUPANCY_SENSOR_TYPE_PIR), \
29+
}, \
30+
}
3131
// clang-format on
3232

3333
typedef struct zigbee_occupancy_sensor_cfg_s {

0 commit comments

Comments
 (0)