File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 66
77#include " esp_zigbee_cluster.h"
88
9- uint8_t ZigbeeEP::_endpoint = 0 ;
10- bool ZigbeeEP::_is_bound = false ;
11- bool ZigbeeEP::_allow_multiple_binding = false ;
9+
1210
1311/* Zigbee End Device Class */
1412ZigbeeEP::ZigbeeEP (uint8_t endpoint) {
1513 _endpoint = endpoint;
14+ _is_bound = false ;
15+ _allow_multiple_binding = false ;
16+
1617 _ep_config.endpoint = 0 ;
1718 _cluster_list = nullptr ;
1819#if !CONFIG_DISABLE_HAL_LOCKS
Original file line number Diff line number Diff line change @@ -72,10 +72,10 @@ class ZigbeeEP {
7272 return _bound_devices;
7373 }
7474
75- static bool isBound () {
75+ bool isBound () {
7676 return _is_bound;
7777 }
78- static void allowMultipleBinding (bool bind) {
78+ void allowMultipleBinding (bool bind) {
7979 _allow_multiple_binding = bind;
8080 }
8181
@@ -104,17 +104,17 @@ class ZigbeeEP {
104104 }
105105
106106private:
107- static bool _allow_multiple_binding;
107+ bool _allow_multiple_binding;
108108 char *_read_manufacturer;
109109 char *_read_model;
110110 void (*_on_identify)(uint16_t time);
111111
112112protected:
113- static uint8_t _endpoint;
113+ uint8_t _endpoint;
114114 esp_zb_ha_standard_devices_t _device_id;
115115 esp_zb_endpoint_config_t _ep_config;
116116 esp_zb_cluster_list_t *_cluster_list;
117- static bool _is_bound;
117+ bool _is_bound;
118118 std::list<zb_device_params_t *> _bound_devices;
119119 SemaphoreHandle_t lock;
120120
You can’t perform that action at this time.
0 commit comments