Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 172dd0f

Browse files
committedOct 2, 2024·
fix(): Codespell issues
1 parent 3961642 commit 172dd0f

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed
 

‎libraries/Zigbee/examples/Zigbee_Color_Dimmable_Light/Zigbee_Color_Dimmable_Light.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void setup() {
8686
}
8787

8888
void loop() {
89-
// Cheking button for factory reset
89+
// Checking button for factory reset
9090
if (digitalRead(BUTTON_PIN) == LOW) { // Push button pressed
9191
// Key debounce handling
9292
delay(100);
@@ -95,7 +95,7 @@ void loop() {
9595
delay(50);
9696
if ((millis() - startTime) > 3000) {
9797
// If key pressed for more than 3secs, factory reset Zigbee and reboot
98-
Serial.printf("Reseting Zigbee to factory settings, reboot.\n");
98+
Serial.printf("Resetting Zigbee to factory settings, reboot.\n");
9999
Zigbee.factoryReset();
100100
}
101101
}

‎libraries/Zigbee/examples/Zigbee_Color_Dimmer_Switch/Zigbee_Color_Dimmer_Switch.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void loop() {
9090
// Toggle light
9191
zbSwitch.lightToggle();
9292
}
93-
// Handle serial input to controll color and level of the light
93+
// Handle serial input to control color and level of the light
9494
if (Serial.available()) {
9595
String command = Serial.readString();
9696

‎libraries/Zigbee/examples/Zigbee_On_Off_Light/Zigbee_On_Off_Light.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void setup() {
6969
}
7070

7171
void loop() {
72-
// Cheking button for factory reset
72+
// Checking button for factory reset
7373
if (digitalRead(BUTTON_PIN) == LOW) { // Push button pressed
7474
// Key debounce handling
7575
delay(100);
@@ -78,7 +78,7 @@ void loop() {
7878
delay(50);
7979
if ((millis() - startTime) > 3000) {
8080
// If key pressed for more than 3secs, factory reset Zigbee and reboot
81-
Serial.printf("Reseting Zigbee to factory settings, reboot.\n");
81+
Serial.printf("Resetting Zigbee to factory settings, reboot.\n");
8282
Zigbee.factoryReset();
8383
}
8484
}

‎libraries/Zigbee/examples/Zigbee_Temperature_Sensor/Zigbee_Temperature_Sensor.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ void setup() {
8282
// Set reporting interval for temperature measurement in seconds, must be called after Zigbee.begin()
8383
// min_interval and max_interval in seconds, delta (temp change in °C)
8484
// if min = 1 and max = 0, reporting is sent only when temperature changes by delta
85-
// if min = 0 and max = 10, reporting is sent every 10 secods or temperature changes by delta
85+
// if min = 0 and max = 10, reporting is sent every 10 seconds or temperature changes by delta
8686
// if min = 0, max = 10 and delta = 0, reporting is sent every 10 seconds regardless of temperature change
8787
zbTempSensor.setReporting(1, 0, 1);
8888
}
8989

9090
void loop() {
91-
// Cheking button for factory reset
91+
// Checking button for factory reset
9292
if (digitalRead(BUTTON_PIN) == LOW) { // Push button pressed
9393
// Key debounce handling
9494
delay(100);
@@ -97,7 +97,7 @@ void loop() {
9797
delay(50);
9898
if ((millis() - startTime) > 3000) {
9999
// If key pressed for more than 3secs, factory reset Zigbee and reboot
100-
Serial.printf("Reseting Zigbee to factory settings, reboot.\n");
100+
Serial.printf("Resetting Zigbee to factory settings, reboot.\n");
101101
Zigbee.factoryReset();
102102
}
103103
}

‎libraries/Zigbee/examples/Zigbee_Thermostat/Zigbee_Thermostat.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void setup() {
6767
// Init button switch
6868
pinMode(BUTTON_PIN, INPUT);
6969

70-
// Set callback functions for temperature and configuration recieve
70+
// Set callback functions for temperature and configuration receive
7171
zbThermostat.onTempRecieve(recieveSensorTemp);
7272
zbThermostat.onConfigRecieve(recieveSensorConfig);
7373

‎libraries/Zigbee/src/ZigbeeCore.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void ZigbeeCore::setRebootOpenNetwork(uint8_t time) {
156156

157157
void ZigbeeCore::openNetwork(uint8_t time) {
158158
if (_started) {
159-
log_v("Openning network for joining for %d seconds", time);
159+
log_v("Opening network for joining for %d seconds", time);
160160
esp_zb_bdb_open_network(time);
161161
}
162162
}
@@ -198,7 +198,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
198198
log_i("Device rebooted");
199199
Zigbee._started = true;
200200
if ((zigbee_role_t)Zigbee.getRole() == ZIGBEE_COORDINATOR && Zigbee._open_network > 0) {
201-
log_i("Openning network for joining for %d seconds", Zigbee._open_network);
201+
log_i("Opening network for joining for %d seconds", Zigbee._open_network);
202202
esp_zb_bdb_open_network(Zigbee._open_network);
203203
}
204204
}
@@ -289,7 +289,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
289289
}
290290

291291
void ZigbeeCore::factoryReset() {
292-
log_v("Factory reseting Zigbee stack, device will reboot");
292+
log_v("Factory resetting Zigbee stack, device will reboot");
293293
esp_zb_factory_reset();
294294
}
295295

‎libraries/Zigbee/src/ZigbeeEP.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include <Arduino.h>
99

10-
/* Usefull defines */
10+
/* Useful defines */
1111
#define ZB_ARRAY_LENTH(arr) (sizeof(arr) / sizeof(arr[0]))
1212
#define print_ieee_addr(addr) \
1313
log_i("IEEE Address: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X", addr[0], addr[1], addr[2], addr[3], addr[4], addr[5], addr[6], addr[7])
@@ -93,7 +93,7 @@ class ZigbeeEP {
9393
// findEndpoind may be implemented by EPs to find and bind devices
9494
virtual void findEndpoint(esp_zb_zdo_match_desc_req_param_t *cmd_req) {};
9595

96-
//list of all handlers function calls, to be overide by EPs implementation
96+
//list of all handlers function calls, to be override by EPs implementation
9797
virtual void zbAttributeSet(const esp_zb_zcl_set_attr_value_message_t *message) {};
9898
virtual void zbAttributeRead(uint16_t cluster_id, const esp_zb_zcl_attribute_t *attribute) {};
9999
virtual void zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute); //already implemented

‎libraries/Zigbee/src/ep/ZigbeeColorDimmableLight.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void ZigbeeColorDimmableLight::calculateRGB(uint16_t x, uint16_t y, uint8_t &red
4747
blue = (uint8_t)(b * (float)255);
4848
}
4949

50-
//set attribude method -> methon overriden in child class
50+
//set attribute method -> method overriden in child class
5151
void ZigbeeColorDimmableLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_message_t *message) {
5252
//check the data and call right method
5353
if (message->info.cluster == ESP_ZB_ZCL_CLUSTER_ID_ON_OFF) {
@@ -58,7 +58,7 @@ void ZigbeeColorDimmableLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_me
5858
}
5959
return;
6060
} else {
61-
log_w("Recieved message ignored. Attribute ID: %d not supported for On/Off Light", message->attribute.id);
61+
log_w("Received message ignored. Attribute ID: %d not supported for On/Off Light", message->attribute.id);
6262
}
6363
} else if (message->info.cluster == ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL) {
6464
if (message->attribute.id == ESP_ZB_ZCL_ATTR_LEVEL_CONTROL_CURRENT_LEVEL_ID && message->attribute.data.type == ESP_ZB_ZCL_ATTR_TYPE_U8) {
@@ -68,7 +68,7 @@ void ZigbeeColorDimmableLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_me
6868
}
6969
return;
7070
} else {
71-
log_w("Recieved message ignored. Attribute ID: %d not supported for Level Control", message->attribute.id);
71+
log_w("Received message ignored. Attribute ID: %d not supported for Level Control", message->attribute.id);
7272
//TODO: implement more attributes -> includes/zcl/esp_zigbee_zcl_level.h
7373
}
7474
} else if (message->info.cluster == ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL) {
@@ -96,10 +96,10 @@ void ZigbeeColorDimmableLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_me
9696
lightChanged();
9797
return;
9898
} else {
99-
log_w("Recieved message ignored. Attribute ID: %d not supported for Color Control", message->attribute.id);
99+
log_w("Received message ignored. Attribute ID: %d not supported for Color Control", message->attribute.id);
100100
}
101101
} else {
102-
log_w("Recieved message ignored. Cluster ID: %d not supported for Color dimmable Light", message->info.cluster);
102+
log_w("Received message ignored. Cluster ID: %d not supported for Color dimmable Light", message->info.cluster);
103103
}
104104
}
105105

‎libraries/Zigbee/src/ep/ZigbeeLight.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ ZigbeeLight::ZigbeeLight(uint8_t endpoint) : ZigbeeEP(endpoint) {
99
_ep_config = {.endpoint = _endpoint, .app_profile_id = ESP_ZB_AF_HA_PROFILE_ID, .app_device_id = ESP_ZB_HA_ON_OFF_LIGHT_DEVICE_ID, .app_device_version = 0};
1010
}
1111

12-
//set attribude method -> methon overriden in child class
12+
//set attribute method -> method overridden in child class
1313
void ZigbeeLight::zbAttributeSet(const esp_zb_zcl_set_attr_value_message_t *message) {
1414
//check the data and call right method
1515
if (message->info.cluster == ESP_ZB_ZCL_CLUSTER_ID_ON_OFF) {
1616
if (message->attribute.id == ESP_ZB_ZCL_ATTR_ON_OFF_ON_OFF_ID && message->attribute.data.type == ESP_ZB_ZCL_ATTR_TYPE_BOOL) {
1717
_current_state = *(bool *)message->attribute.data.value;
1818
lightChanged();
1919
} else {
20-
log_w("Recieved message ignored. Attribute ID: %d not supported for On/Off Light", message->attribute.id);
20+
log_w("Received message ignored. Attribute ID: %d not supported for On/Off Light", message->attribute.id);
2121
}
2222
} else {
23-
log_w("Recieved message ignored. Cluster ID: %d not supported for On/Off Light", message->info.cluster);
23+
log_w("Received message ignored. Cluster ID: %d not supported for On/Off Light", message->info.cluster);
2424
}
2525
}
2626

0 commit comments

Comments
 (0)
Please sign in to comment.