Skip to content

Commit

Permalink
ci(pre-commit): Apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Feb 18, 2025
1 parent fe1806d commit 29ee869
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void setup() {

// Init button for factory reset
pinMode(button, INPUT_PULLUP);

// Optional: Set callback function for device identify
zbExtender.onIdentify(identify);

Expand All @@ -76,8 +76,8 @@ void setup() {
#if USE_CUSTOM_ZIGBEE_CONFIG
// Optional: Create a custom Zigbee configuration for Zigbee Extender
esp_zb_cfg_t zigbeeConfig = ZIGBEE_DEFAULT_ROUTER_CONFIG();
zigbeeConfig.nwk_cfg.zczr_cfg.max_children = 20; // 10 is default
zigbeeConfig.nwk_cfg.zczr_cfg.max_children = 20; // 10 is default

// When all EPs are registered, start Zigbee with custom config
if (!Zigbee.begin(&zigbeeConfig)) {
#else
Expand Down Expand Up @@ -112,4 +112,4 @@ void loop() {
}
}
}
}
}
2 changes: 1 addition & 1 deletion libraries/Zigbee/src/ep/ZigbeeRangeExtender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ ZigbeeRangeExtender::ZigbeeRangeExtender(uint8_t endpoint) : ZigbeeEP(endpoint)
_ep_config = {.endpoint = _endpoint, .app_profile_id = ESP_ZB_AF_HA_PROFILE_ID, .app_device_id = ESP_ZB_HA_RANGE_EXTENDER_DEVICE_ID, .app_device_version = 0};
}

#endif //SOC_IEEE802154_SUPPORTED && CONFIG_ZB_ENABLED
#endif //SOC_IEEE802154_SUPPORTED && CONFIG_ZB_ENABLED
3 changes: 1 addition & 2 deletions libraries/Zigbee/src/ep/ZigbeeRangeExtender.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class ZigbeeRangeExtender : public ZigbeeEP {
public:
ZigbeeRangeExtender(uint8_t endpoint);
~ZigbeeRangeExtender() {}

};

#endif //SOC_IEEE802154_SUPPORTED && CONFIG_ZB_ENABLED
#endif //SOC_IEEE802154_SUPPORTED && CONFIG_ZB_ENABLED

0 comments on commit 29ee869

Please sign in to comment.