Skip to content

Commit 4eb37aa

Browse files
committed
Remove unnecesary defaults defines
1 parent 6e220ec commit 4eb37aa

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

libraries/Zigbee/src/ZigbeeCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include "Arduino.h"
88

99
ZigbeeCore::ZigbeeCore() {
10-
_radio_config = ZIGBEE_DEFAULT_RADIO_CONFIG();
11-
_host_config = ZIGBEE_DEFAULT_HOST_CONFIG();
10+
_radio_config.radio_mode = ZB_RADIO_MODE_NATIVE; // Use the native 15.4 radio
11+
_host_config.host_connection_mode = ZB_HOST_CONNECTION_MODE_NONE; // Disable host connection
1212
_zb_ep_list = esp_zb_ep_list_create();
1313
_primary_channel_mask = ESP_ZB_TRANSCEIVER_ALL_CHANNELS_MASK;
1414
_open_network = 0;

libraries/Zigbee/src/ZigbeeCore.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ typedef enum {
6565
} \
6666
}
6767

68-
// default Zigbee radio and host configuration
69-
#define ZIGBEE_DEFAULT_RADIO_CONFIG() \
70-
{ .radio_mode = ZB_RADIO_MODE_NATIVE, }
71-
72-
#define ZIGBEE_DEFAULT_HOST_CONFIG() \
73-
{ .host_connection_mode = ZB_HOST_CONNECTION_MODE_NONE, }
74-
7568
class ZigbeeCore {
7669
private:
7770
esp_zb_radio_config_t _radio_config;

0 commit comments

Comments
 (0)