Skip to content

Commit 145097c

Browse files
ci(pre-commit): Apply automatic fixes
1 parent ab75370 commit 145097c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ZigbeeCore::ZigbeeCore() {
2020
_scan_status = ZB_SCAN_FAILED;
2121
_started = false;
2222
_connected = false;
23-
_scan_duration = 4; // maximum scan duration
23+
_scan_duration = 4; // maximum scan duration
2424
if (!lock) {
2525
lock = xSemaphoreCreateBinary();
2626
if (lock == NULL) {
@@ -182,7 +182,7 @@ void ZigbeeCore::setPrimaryChannelMask(uint32_t mask) {
182182
}
183183

184184
void ZigbeeCore::setScanDuration(uint8_t duration) {
185-
if(duration < 1 || duration > 4) {
185+
if (duration < 1 || duration > 4) {
186186
log_e("Invalid scan duration, must be between 1 and 4");
187187
return;
188188
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class ZigbeeCore {
110110
void setHostConfig(esp_zb_host_config_t config);
111111
esp_zb_host_config_t getHostConfig();
112112

113-
void setPrimaryChannelMask(uint32_t mask); // By default all channels are scanned (11-26) -> mask 0x07FFF800
114-
void setScanDuration(uint8_t duration); // Can be set from 1 - 4. 1 is fastest, 4 is slowest
113+
void setPrimaryChannelMask(uint32_t mask); // By default all channels are scanned (11-26) -> mask 0x07FFF800
114+
void setScanDuration(uint8_t duration); // Can be set from 1 - 4. 1 is fastest, 4 is slowest
115115
uint8_t getScanDuration() {
116116
return _scan_duration;
117117
}

0 commit comments

Comments
 (0)