Skip to content

Commit 677a984

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 572fea3 commit 677a984

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: libraries/Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy/Zigbee_Temp_Hum_Sensor_Sleepy.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void setup() {
107107
if (!Zigbee.begin(&zigbeeConfig, false)) {
108108
Serial.println("Zigbee failed to start!");
109109
Serial.println("Rebooting...");
110-
ESP.restart(); // If Zigbee failed to start, reboot the device and try again
110+
ESP.restart(); // If Zigbee failed to start, reboot the device and try again
111111
}
112112
Serial.println("Connecting to network");
113113
while (!Zigbee.connected()) {

Diff for: libraries/Zigbee/src/ZigbeeCore.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bool ZigbeeCore::begin(esp_zb_cfg_t *role_cfg, bool erase_nvs) {
4949
_role = (zigbee_role_t)role_cfg->esp_zb_role;
5050
if (xSemaphoreTake(lock, _begin_timeout) != pdTRUE) {
5151
log_e("ZigbeeCore begin failed or timeout");
52-
if(_role != ZIGBEE_COORDINATOR) { // Only End Device and Router can rejoin
52+
if (_role != ZIGBEE_COORDINATOR) { // Only End Device and Router can rejoin
5353
resetNVRAMChannelMask();
5454
}
5555
}
@@ -84,7 +84,7 @@ bool ZigbeeCore::begin(zigbee_role_t role, bool erase_nvs) {
8484
}
8585
if (!status || xSemaphoreTake(lock, _begin_timeout) != pdTRUE) {
8686
log_e("ZigbeeCore begin failed or timeout");
87-
if(_role != ZIGBEE_COORDINATOR) { // Only End Device and Router can rejoin
87+
if (_role != ZIGBEE_COORDINATOR) { // Only End Device and Router can rejoin
8888
resetNVRAMChannelMask();
8989
}
9090
}

Diff for: libraries/Zigbee/src/ZigbeeCore.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class ZigbeeCore {
106106
const char *getDeviceTypeString(esp_zb_ha_standard_devices_t deviceId);
107107
void searchBindings();
108108
static void bindingTableCb(const esp_zb_zdo_binding_table_info_t *table_info, void *user_ctx);
109-
void resetNVRAMChannelMask(); // Reset to default mask also in NVRAM
110-
void setNVRAMChannelMask(uint32_t mask); // Set channel mask in NVRAM
109+
void resetNVRAMChannelMask(); // Reset to default mask also in NVRAM
110+
void setNVRAMChannelMask(uint32_t mask); // Set channel mask in NVRAM
111111

112112
public:
113113
ZigbeeCore();
@@ -140,7 +140,7 @@ class ZigbeeCore {
140140

141141
void setPrimaryChannelMask(uint32_t mask); // By default all channels are scanned (11-26) -> mask 0x07FFF800
142142

143-
void setScanDuration(uint8_t duration); // Can be set from 1 - 4. 1 is fastest, 4 is slowest
143+
void setScanDuration(uint8_t duration); // Can be set from 1 - 4. 1 is fastest, 4 is slowest
144144
uint8_t getScanDuration() {
145145
return _scan_duration;
146146
}

0 commit comments

Comments
 (0)