Skip to content

Commit 558c5a7

Browse files
committed
fix(spelling): Fix misspellings detected by codespell
1 parent d57d283 commit 558c5a7

File tree

13 files changed

+21
-20
lines changed

13 files changed

+21
-20
lines changed

Diff for: .pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ exclude: |
22
(?x)(
33
^\.github\/|
44
^tests\/performance\/coremark\/.*\.[ch]$|
5+
^tests\/performance\/superpi\/.*\.(cpp|h)$|
56
LICENSE\.md$
67
)
78

Diff for: cores/esp32/HWCDC.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size) {
443443
if (connected) {
444444
usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY);
445445
}
446-
// tracks CDC trasmission progress to avoid hanging if CDC is unplugged while still sending data
446+
// tracks CDC transmission progress to avoid hanging if CDC is unplugged while still sending data
447447
size_t last_toSend = to_send;
448448
uint32_t tries = tx_timeout_ms; // waits 1ms per sending data attempt, in case CDC is unplugged
449449
while (connected && to_send) {
@@ -479,7 +479,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size) {
479479
}
480480
}
481481
}
482-
// CDC was diconnected while sending data ==> flush the TX buffer keeping the last data
482+
// CDC was disconnected while sending data ==> flush the TX buffer keeping the last data
483483
if (to_send && !usb_serial_jtag_ll_txfifo_writable()) {
484484
connected = false;
485485
flushTXBuffer(buffer + so_far, to_send);

Diff for: libraries/ESP32/examples/DeepSleep/ExternalWakeUp/ExternalWakeUp.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void setup() {
8181
/*
8282
If there are no external pull-up/downs, tie wakeup pins to inactive level with internal pull-up/downs via RTC IO
8383
during deepsleep. However, RTC IO relies on the RTC_PERIPH power domain. Keeping this power domain on will
84-
increase some power comsumption. However, if we turn off the RTC_PERIPH domain or if certain chips lack the RTC_PERIPH
84+
increase some power consumption. However, if we turn off the RTC_PERIPH domain or if certain chips lack the RTC_PERIPH
8585
domain, we will use the HOLD feature to maintain the pull-up and pull-down on the pins during sleep.
8686
*/
8787
rtc_gpio_pulldown_en(WAKEUP_GPIO); // GPIO33 is tie to GND in order to wake up in HIGH

Diff for: libraries/ESP32/examples/Zigbee/Zigbee_Light_Switch/Zigbee_Light_Switch.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
159159
esp_zb_bdb_start_top_level_commissioning(ESP_ZB_BDB_MODE_NETWORK_FORMATION);
160160
} else {
161161
log_i("Device rebooted");
162-
log_i("Openning network for joining for %d seconds", 180);
162+
log_i("Opening network for joining for %d seconds", 180);
163163
esp_zb_bdb_open_network(180);
164164
}
165165
} else {

Diff for: libraries/ESP32/examples/Zigbee/Zigbee_Thermostat/Zigbee_Thermostat.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
279279
esp_zb_bdb_start_top_level_commissioning(ESP_ZB_BDB_MODE_NETWORK_FORMATION);
280280
} else {
281281
log_i("Device rebooted");
282-
log_i("Openning network for joining for %d seconds", 180);
282+
log_i("Opening network for joining for %d seconds", 180);
283283
esp_zb_bdb_open_network(180);
284284
}
285285
} else {

Diff for: libraries/OpenThread/examples/COAP/coap_lamp/coap_lamp.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bool otDeviceSetup(const char **otSetupCmds, uint8_t nCmds1, const char **otCoap
9090
}
9191

9292
void setupNode() {
93-
// tries to set the Thread Network node and only returns when succeded
93+
// tries to set the Thread Network node and only returns when succeeded
9494
bool startedCorrectly = false;
9595
while (!startedCorrectly) {
9696
startedCorrectly |=

Diff for: libraries/OpenThread/examples/COAP/coap_switch/coap_switch.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ bool otDeviceSetup(
7979
}
8080
Serial.println("OpenThread setup done. Node is ready.");
8181
// all fine! LED goes and stays Blue
82-
neopixelWrite(RGB_BUILTIN, 0, 0, 64); // BLUE ... Swtich is ready!
82+
neopixelWrite(RGB_BUILTIN, 0, 0, 64); // BLUE ... Switch is ready!
8383
return true;
8484
}
8585

8686
void setupNode() {
87-
// tries to set the Thread Network node and only returns when succeded
87+
// tries to set the Thread Network node and only returns when succeeded
8888
bool startedCorrectly = false;
8989
while (!startedCorrectly) {
9090
startedCorrectly |= otDeviceSetup(
@@ -138,19 +138,19 @@ bool otCoapPUT(bool lampState) {
138138
return false;
139139
}
140140

141-
// this fucntion is used by the Switch mode to check the BOOT Button and send the user action to the Lamp node
141+
// this function is used by the Switch mode to check the BOOT Button and send the user action to the Lamp node
142142
void checkUserButton() {
143143
static long unsigned int lastPress = 0;
144144
const long unsigned int debounceTime = 500;
145-
static bool lastLampState = true; // first button press will turn the Lamp OFF from inital Green
145+
static bool lastLampState = true; // first button press will turn the Lamp OFF from initial Green
146146

147147
pinMode(USER_BUTTON, INPUT_PULLUP); // C6/H2 User Button
148148
if (millis() > lastPress + debounceTime && digitalRead(USER_BUTTON) == LOW) {
149149
lastLampState = !lastLampState;
150150
if (!otCoapPUT(lastLampState)) { // failed: Lamp Node is not responding due to be off or unreachable
151151
// timeout from the CoAP PUT message... restart the node.
152152
neopixelWrite(RGB_BUILTIN, 255, 0, 0); // RED ... something failed!
153-
Serial.println("Reseting the Node as Switch... wait.");
153+
Serial.println("Resetting the Node as Switch... wait.");
154154
// start over...
155155
setupNode();
156156
}

Diff for: libraries/OpenThread/src/OThreadCLI_Util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ bool otExecCommand(const char *cmd, const char *arg, ot_cmd_return_t *returnCode
117117
i--; // search for ' ' before ":'
118118
}
119119
if (*i == ' ') {
120-
i++; // move it forward to the number begining
120+
i++; // move it forward to the number beginning
121121
returnCode->errorCode = atoi(i);
122122
returnCode->errorMessage = m;
123123
} // otherwise, it will keep the "bad error message" information

Diff for: libraries/PPP/src/PPP.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ bool PPPClass::setPins(int8_t tx, int8_t rx, int8_t rts, int8_t cts, esp_modem_f
226226
bool PPPClass::begin(ppp_modem_model_t model, uint8_t uart_num, int baud_rate) {
227227
esp_err_t ret = ESP_OK;
228228
bool pin_ok = false;
229-
int trys = 0;
229+
int tries = 0;
230230

231231
if (_esp_netif != NULL || _dce != NULL) {
232232
log_w("PPP Already Started");
@@ -313,11 +313,11 @@ bool PPPClass::begin(ppp_modem_model_t model, uint8_t uart_num, int baud_rate) {
313313
if (_pin_rst >= 0) {
314314
// wait to be able to talk to the modem
315315
log_v("Waiting for response from the modem");
316-
while (esp_modem_sync(_dce) != ESP_OK && trys < 100) {
317-
trys++;
316+
while (esp_modem_sync(_dce) != ESP_OK && tries < 100) {
317+
tries++;
318318
delay(500);
319319
}
320-
if (trys >= 100) {
320+
if (tries >= 100) {
321321
log_e("Failed to wait for communication");
322322
goto err;
323323
}

Diff for: libraries/WebServer/examples/WebServer/WebServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void setup(void) {
243243

244244
TRACE("Starting WebServer example...\n");
245245

246-
// ----- check partitions for finding the fileystem type -----
246+
// ----- check partitions for finding the filesystem type -----
247247
esp_partition_iterator_t i;
248248

249249
i = esp_partition_find(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_DATA_FAT, nullptr);

Diff for: tools/get.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def is_latest_version(destination, dirname, rename_to, cfile, checksum):
171171

172172
except Exception as e:
173173
if verbose:
174-
print(f"Falied to verify version for {rename_to}: {e}")
174+
print(f"Failed to verify version for {rename_to}: {e}")
175175

176176
return False
177177

Diff for: variants/alfredo-nou3/pins_arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#define USB_PID 0x0003
66
#define USB_MANUFACTURER "Alfredo"
77
#define USB_PRODUCT "NoU3"
8-
#define USB_SERIAL "" // Empty string for MAC adddress
8+
#define USB_SERIAL "" // Empty string for MAC address
99

1010
// User LED
1111
#define LED_BUILTIN 45

Diff for: variants/circuitart_zero_s3/pins_arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define USB_PID 0x80DB
88
#define USB_MANUFACTURER "CircuitART"
99
#define USB_PRODUCT "ZeroS3"
10-
#define USB_SERIAL "" // Empty string for MAC adddress
10+
#define USB_SERIAL "" // Empty string for MAC address
1111

1212
// User LED
1313
#define LED_BUILTIN 46

0 commit comments

Comments
 (0)