File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
#include " esp_zigbee_cluster.h"
8
8
9
- uint8_t ZigbeeEP::_endpoint = 0 ;
10
- bool ZigbeeEP::_is_bound = false ;
11
- bool ZigbeeEP::_allow_multiple_binding = false ;
9
+
12
10
13
11
/* Zigbee End Device Class */
14
12
ZigbeeEP::ZigbeeEP (uint8_t endpoint) {
15
13
_endpoint = endpoint;
14
+ _is_bound = false ;
15
+ _allow_multiple_binding = false ;
16
+
16
17
_ep_config.endpoint = 0 ;
17
18
_cluster_list = nullptr ;
18
19
#if !CONFIG_DISABLE_HAL_LOCKS
Original file line number Diff line number Diff line change @@ -72,10 +72,10 @@ class ZigbeeEP {
72
72
return _bound_devices;
73
73
}
74
74
75
- static bool isBound () {
75
+ bool isBound () {
76
76
return _is_bound;
77
77
}
78
- static void allowMultipleBinding (bool bind) {
78
+ void allowMultipleBinding (bool bind) {
79
79
_allow_multiple_binding = bind;
80
80
}
81
81
@@ -104,17 +104,17 @@ class ZigbeeEP {
104
104
}
105
105
106
106
private:
107
- static bool _allow_multiple_binding;
107
+ bool _allow_multiple_binding;
108
108
char *_read_manufacturer;
109
109
char *_read_model;
110
110
void (*_on_identify)(uint16_t time);
111
111
112
112
protected:
113
- static uint8_t _endpoint;
113
+ uint8_t _endpoint;
114
114
esp_zb_ha_standard_devices_t _device_id;
115
115
esp_zb_endpoint_config_t _ep_config;
116
116
esp_zb_cluster_list_t *_cluster_list;
117
- static bool _is_bound;
117
+ bool _is_bound;
118
118
std::list<zb_device_params_t *> _bound_devices;
119
119
SemaphoreHandle_t lock;
120
120
You can’t perform that action at this time.
0 commit comments