diff --git a/.codespellrc b/.codespellrc index 690782793..756f7e950 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,9 +1,8 @@ [codespell] # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc # In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here: -ignore-words-list = ba,licence,ot,dout,als,exten,acount,totaly,pasttime +ignore-words-list = ba,licence,ot,dout,als,exten skip = ./.git,./.licenses,__pycache__,.clang-format,.codespellrc,.editorconfig,.flake8,.prettierignore,.yamllint.yml,.gitignore,boards.txt,platform.txt,programmers.txt builtin = clear,informal,en-GB_to_en-US check-filenames = check-hidden = -write-changes = diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c92e9ad0d..54b4769ad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,9 @@ exclude: | (?x)( ^\.github\/| - ^tests\/performance\/coremark\/.*\.[ch]$ + ^tests\/performance\/coremark\/.*\.[ch]$| + ^tests\/performance\/superpi\/.*\.(cpp|h)$| + LICENSE\.md$ ) default_language_version: @@ -24,11 +26,10 @@ repos: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - repo: https://github.com/codespell-project/codespell - rev: "v2.2.4" + rev: "v2.3.0" hooks: - id: codespell exclude: ^.*\.(svd|SVD)$ - stages: [manual] - repo: https://github.com/pre-commit/mirrors-clang-format rev: "v18.1.3" hooks: diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index ab0dbd360..0c90775c7 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -5,7 +5,7 @@ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, +identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation. diff --git a/cores/esp32/Arduino.h b/cores/esp32/Arduino.h index 2f2c53af4..4a92f29d0 100644 --- a/cores/esp32/Arduino.h +++ b/cores/esp32/Arduino.h @@ -179,7 +179,7 @@ void initArduino(void); unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout); unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout); -uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder); +uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder); // codespell:ignore shiftin void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val); #ifdef __cplusplus diff --git a/cores/esp32/HWCDC.cpp b/cores/esp32/HWCDC.cpp index b0f653e88..780e560dc 100644 --- a/cores/esp32/HWCDC.cpp +++ b/cores/esp32/HWCDC.cpp @@ -443,7 +443,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size) { if (connected) { usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY); } - // tracks CDC trasmission progress to avoid hanging if CDC is unplugged while still sending data + // tracks CDC transmission progress to avoid hanging if CDC is unplugged while still sending data size_t last_toSend = to_send; uint32_t tries = tx_timeout_ms; // waits 1ms per sending data attempt, in case CDC is unplugged while (connected && to_send) { @@ -479,7 +479,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size) { } } } - // CDC was diconnected while sending data ==> flush the TX buffer keeping the last data + // CDC was disconnected while sending data ==> flush the TX buffer keeping the last data if (to_send && !usb_serial_jtag_ll_txfifo_writable()) { connected = false; flushTXBuffer(buffer + so_far, to_send); diff --git a/cores/esp32/HardwareSerial.h b/cores/esp32/HardwareSerial.h index 3fd5e7dc9..fb9ac9a95 100644 --- a/cores/esp32/HardwareSerial.h +++ b/cores/esp32/HardwareSerial.h @@ -228,7 +228,7 @@ public: // onReceive will setup a callback that will be called whenever an UART interruption occurs (UART_INTR_RXFIFO_FULL or UART_INTR_RXFIFO_TOUT) // UART_INTR_RXFIFO_FULL interrupt triggers at UART_FULL_THRESH_DEFAULT bytes received (defined as 120 bytes by default in IDF) - // UART_INTR_RXFIFO_TOUT interrupt triggers at UART_TOUT_THRESH_DEFAULT symbols passed without any reception (defined as 10 symbos by default in IDF) + // UART_INTR_RXFIFO_TOUT interrupt triggers at UART_TOUT_THRESH_DEFAULT symbols passed without any reception (defined as 10 symbols by default in IDF) // onlyOnTimeout parameter will define how onReceive will behave: // Default: true -- The callback will only be called when RX Timeout happens. // Whole stream of bytes will be ready for being read on the callback function at once. diff --git a/cores/esp32/esp32-hal-uart.c b/cores/esp32/esp32-hal-uart.c index 7608502d0..9eb117988 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -45,7 +45,7 @@ struct uart_struct_t { bool has_peek; // flag to indicate that there is a peek byte pending to be read uint8_t peek_byte; // peek byte that has been read but not consumed QueueHandle_t uart_event_queue; // export it by some uartGetEventQueue() function - // configuration data:: Arduino API tipical data + // configuration data:: Arduino API typical data int8_t _rxPin, _txPin, _ctsPin, _rtsPin; // UART GPIOs uint32_t _baudrate, _config; // UART baudrate and config // UART ESP32 specific data diff --git a/cores/esp32/wiring_shift.c b/cores/esp32/wiring_shift.c index 7148ec303..2198b2e52 100644 --- a/cores/esp32/wiring_shift.c +++ b/cores/esp32/wiring_shift.c @@ -20,7 +20,7 @@ #include "esp32-hal.h" #include "wiring_private.h" -uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder) { +uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder) { // codespell:ignore shiftin uint8_t value = 0; uint8_t i; diff --git a/docs/en/api/gpio.rst b/docs/en/api/gpio.rst index e74f90bff..ebf31088f 100644 --- a/docs/en/api/gpio.rst +++ b/docs/en/api/gpio.rst @@ -9,7 +9,7 @@ One of the most used and versatile peripheral in a microcontroller is the GPIO. GPIO stands to General Purpose Input Output, and is responsible to control or read the state of a specific pin in the digital world. For example, this peripheral is widely used to create the LED blinking or to read a simple button. -.. note:: There are some GPIOs with special restrictions, and not all GPIOs are accessible through the developemnt board. For more information about it, see the corresponding board pin layout information. +.. note:: There are some GPIOs with special restrictions, and not all GPIOs are accessible through the development board. For more information about it, see the corresponding board pin layout information. GPIOs Modes *********** diff --git a/docs/en/tutorials/preferences.rst b/docs/en/tutorials/preferences.rst index 2239f4b84..53b87abd0 100644 --- a/docs/en/tutorials/preferences.rst +++ b/docs/en/tutorials/preferences.rst @@ -565,7 +565,7 @@ If you need to access a different namespace, close the one before opening the ot currentNamespace.end(); // closes 'myNamespace' - currentNamespace.begin("myOtherNamespace", false); // opens a different Preferences namesspace. + currentNamespace.begin("myOtherNamespace", false); // opens a different Preferences namespace. // do other stuff... currentNamespace.end(); // closes 'myOtherNamespace' @@ -644,7 +644,7 @@ Returning to the example above: .. -will assign to the variable ``dessert`` the String ``gravel`` if an error occurred, or the value stored against the key ``favourites`` if not. +will assign to the variable ``dessert`` the String ``gravel`` if an error occurred, or the value stored against the key ``favorites`` if not. If we predetermine a default value that is outside all legitimate values, we now have a way to test if an error actually occurred. diff --git a/libraries/ArduinoOTA/library.properties b/libraries/ArduinoOTA/library.properties index f4a674e7e..a8336230f 100644 --- a/libraries/ArduinoOTA/library.properties +++ b/libraries/ArduinoOTA/library.properties @@ -3,7 +3,7 @@ version=3.0.4 author=Ivan Grokhotkov and Hristo Gochkov maintainer=Hristo Gochkov sentence=Enables Over The Air upgrades, via wifi and espota.py UDP request/TCP download. -paragraph=With this library you can enable your sketch to be upgraded over network. Includes mdns anounces to get discovered by the arduino IDE. +paragraph=With this library you can enable your sketch to be upgraded over network. Includes mdns announces to get discovered by the arduino IDE. category=Communication url= architectures=esp32 diff --git a/libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino b/libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino index f49794b6b..42daff868 100644 --- a/libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino +++ b/libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino @@ -25,7 +25,7 @@ class MyBLEExtAdvertisingCallbacks : public BLEExtAdvertisingCallbacks { // here we can receive regular advertising data from BLE4.x devices Serial.println("BLE4.2"); } else { - // here we will get extended advertising data that are advertised over data channel by BLE5 divices + // here we will get extended advertising data that are advertised over data channel by BLE5 devices Serial.printf("Ext advertise: data_le: %d, data_status: %d \n", report.adv_data_len, report.data_status); } } diff --git a/libraries/BLE/src/BLERemoteCharacteristic.cpp b/libraries/BLE/src/BLERemoteCharacteristic.cpp index cd1078796..60d5108c1 100644 --- a/libraries/BLE/src/BLERemoteCharacteristic.cpp +++ b/libraries/BLE/src/BLERemoteCharacteristic.cpp @@ -177,7 +177,7 @@ void BLERemoteCharacteristic::gattClientEventHandler(esp_gattc_cb_event_t event, } // At this point, we have determined that the event is for us, so now we save the value - // and unlock the semaphore to ensure that the requestor of the data can continue. + // and unlock the semaphore to ensure that the requester of the data can continue. if (evtParam->read.status == ESP_GATT_OK) { m_value = String((char *)evtParam->read.value, evtParam->read.value_len); if (m_rawData != nullptr) { diff --git a/libraries/BLE/src/BLERemoteDescriptor.cpp b/libraries/BLE/src/BLERemoteDescriptor.cpp index d57f11eb8..b6d654cf9 100644 --- a/libraries/BLE/src/BLERemoteDescriptor.cpp +++ b/libraries/BLE/src/BLERemoteDescriptor.cpp @@ -69,7 +69,7 @@ void BLERemoteDescriptor::gattClientEventHandler(esp_gattc_cb_event_t event, esp } else { m_value = ""; } - // Unlock the semaphore to ensure that the requestor of the data can continue. + // Unlock the semaphore to ensure that the requester of the data can continue. m_semaphoreReadDescrEvt.give(); break; diff --git a/libraries/BluetoothSerial/examples/DiscoverConnect/DiscoverConnect.ino b/libraries/BluetoothSerial/examples/DiscoverConnect/DiscoverConnect.ino index e9ec101b9..bd50c6b1d 100644 --- a/libraries/BluetoothSerial/examples/DiscoverConnect/DiscoverConnect.ino +++ b/libraries/BluetoothSerial/examples/DiscoverConnect/DiscoverConnect.ino @@ -80,7 +80,7 @@ void setup() { Serial.println("Didn't find any devices"); } } else { - Serial.println("Error on discoverAsync f.e. not workin after a \"connect\""); + Serial.println("Error on discoverAsync f.e. not working after a \"connect\""); } } diff --git a/libraries/ESP32/examples/Camera/CameraWebServer/app_httpd.cpp b/libraries/ESP32/examples/Camera/CameraWebServer/app_httpd.cpp index 9f78de594..af3d38ad5 100644 --- a/libraries/ESP32/examples/Camera/CameraWebServer/app_httpd.cpp +++ b/libraries/ESP32/examples/Camera/CameraWebServer/app_httpd.cpp @@ -1101,7 +1101,7 @@ static esp_err_t win_handler(httpd_req_t *req) { int offsetX = parse_get_var(buf, "offx", 0); int offsetY = parse_get_var(buf, "offy", 0); int totalX = parse_get_var(buf, "tx", 0); - int totalY = parse_get_var(buf, "ty", 0); + int totalY = parse_get_var(buf, "ty", 0); // codespell:ignore totaly int outputX = parse_get_var(buf, "ox", 0); int outputY = parse_get_var(buf, "oy", 0); bool scale = parse_get_var(buf, "scale", 0) == 1; @@ -1110,10 +1110,10 @@ static esp_err_t win_handler(httpd_req_t *req) { log_i( "Set Window: Start: %d %d, End: %d %d, Offset: %d %d, Total: %d %d, Output: %d %d, Scale: %u, Binning: %u", startX, startY, endX, endY, offsetX, offsetY, - totalX, totalY, outputX, outputY, scale, binning + totalX, totalY, outputX, outputY, scale, binning // codespell:ignore totaly ); sensor_t *s = esp_camera_sensor_get(); - int res = s->set_res_raw(s, startX, startY, endX, endY, offsetX, offsetY, totalX, totalY, outputX, outputY, scale, binning); + int res = s->set_res_raw(s, startX, startY, endX, endY, offsetX, offsetY, totalX, totalY, outputX, outputY, scale, binning); // codespell:ignore totaly if (res) { return httpd_resp_send_500(req); } diff --git a/libraries/ESP32/examples/DeepSleep/ExternalWakeUp/ExternalWakeUp.ino b/libraries/ESP32/examples/DeepSleep/ExternalWakeUp/ExternalWakeUp.ino index dc247e387..aed57c490 100644 --- a/libraries/ESP32/examples/DeepSleep/ExternalWakeUp/ExternalWakeUp.ino +++ b/libraries/ESP32/examples/DeepSleep/ExternalWakeUp/ExternalWakeUp.ino @@ -81,7 +81,7 @@ void setup() { /* If there are no external pull-up/downs, tie wakeup pins to inactive level with internal pull-up/downs via RTC IO during deepsleep. However, RTC IO relies on the RTC_PERIPH power domain. Keeping this power domain on will - increase some power comsumption. However, if we turn off the RTC_PERIPH domain or if certain chips lack the RTC_PERIPH + increase some power consumption. However, if we turn off the RTC_PERIPH domain or if certain chips lack the RTC_PERIPH domain, we will use the HOLD feature to maintain the pull-up and pull-down on the pins during sleep. */ rtc_gpio_pulldown_en(WAKEUP_GPIO); // GPIO33 is tie to GND in order to wake up in HIGH diff --git a/libraries/ESP32/examples/Serial/OnReceiveError_BREAK_Demo/OnReceiveError_BREAK_Demo.ino b/libraries/ESP32/examples/Serial/OnReceiveError_BREAK_Demo/OnReceiveError_BREAK_Demo.ino index caf0cde50..fb7af04c5 100644 --- a/libraries/ESP32/examples/Serial/OnReceiveError_BREAK_Demo/OnReceiveError_BREAK_Demo.ino +++ b/libraries/ESP32/examples/Serial/OnReceiveError_BREAK_Demo/OnReceiveError_BREAK_Demo.ino @@ -35,7 +35,7 @@ before reading data, if necessary. In long UART transmissions, some data will be received based on FIFO Full parameter, and whenever - an error ocurs, it will raise the UART error interrupt. + an error occurs, it will raise the UART error interrupt. This sketch produces BREAK UART error in the beginning of a transmission and also at the end of a transmission. It will be possible to understand the order of the events in the logs. diff --git a/libraries/ESP32/examples/Serial/RxFIFOFull_Demo/RxFIFOFull_Demo.ino b/libraries/ESP32/examples/Serial/RxFIFOFull_Demo/RxFIFOFull_Demo.ino index e18dbbe5a..7722ef6f4 100644 --- a/libraries/ESP32/examples/Serial/RxFIFOFull_Demo/RxFIFOFull_Demo.ino +++ b/libraries/ESP32/examples/Serial/RxFIFOFull_Demo/RxFIFOFull_Demo.ino @@ -91,9 +91,9 @@ void testAndReport(uint8_t fifoFull) { } } - uint32_t pastTime = millis() - now; + uint32_t pastTime = millis() - now; // codespell:ignore pasttime Serial.printf("\nIt has sent %d bytes from Serial1 TX to Serial1 RX\n", sentBytes); - Serial.printf("It took %lu milliseconds to read %d bytes\n", pastTime, bytesReceived); + Serial.printf("It took %lu milliseconds to read %d bytes\n", pastTime, bytesReceived); // codespell:ignore pasttime Serial.printf("Per execution Serial.read() number of bytes data and time information:\n"); for (i = 0; i < DATA_SIZE; i++) { Serial.printf("#%03d - Received %03lu bytes after %lu ms.\n", i, bytesJustReceived[i], i > 0 ? timeStamp[i] - timeStamp[i - 1] : timeStamp[i] - now); diff --git a/libraries/ESP32/examples/Serial/RxTimeout_Demo/RxTimeout_Demo.ino b/libraries/ESP32/examples/Serial/RxTimeout_Demo/RxTimeout_Demo.ino index acddd73a4..64d15d3d9 100644 --- a/libraries/ESP32/examples/Serial/RxTimeout_Demo/RxTimeout_Demo.ino +++ b/libraries/ESP32/examples/Serial/RxTimeout_Demo/RxTimeout_Demo.ino @@ -85,9 +85,9 @@ void testAndReport(uint8_t rxTimeout) { } } - uint32_t pastTime = millis() - now; + uint32_t pastTime = millis() - now; // codespell:ignore pasttime Serial.printf("\nIt has sent %d bytes from Serial1 TX to Serial1 RX\n", sentBytes); - Serial.printf("It took %lu milliseconds to read %d bytes\n", pastTime, bytesReceived); + Serial.printf("It took %lu milliseconds to read %d bytes\n", pastTime, bytesReceived); // codespell:ignore pasttime Serial.print("Received data: ["); Serial.write(dataReceived, DATA_SIZE); Serial.println("]"); diff --git a/libraries/ESP32/examples/Touch/TouchButton/TouchButton.ino b/libraries/ESP32/examples/Touch/TouchButton/TouchButton.ino index 9acfdddb3..43f3bc365 100644 --- a/libraries/ESP32/examples/Touch/TouchButton/TouchButton.ino +++ b/libraries/ESP32/examples/Touch/TouchButton/TouchButton.ino @@ -1,7 +1,7 @@ /* This is an example how to use Touch Intrrerupts -The sketh will tell when it is touched and then relesased as like a push-button +The sketch will tell when it is touched and then released as like a push-button This method based on touchInterruptSetThresholdDirection() is only available for ESP32 */ diff --git a/libraries/ESP32/examples/Touch/TouchButtonV2/TouchButtonV2.ino b/libraries/ESP32/examples/Touch/TouchButtonV2/TouchButtonV2.ino index 5dc9bfeed..df9b3f411 100644 --- a/libraries/ESP32/examples/Touch/TouchButtonV2/TouchButtonV2.ino +++ b/libraries/ESP32/examples/Touch/TouchButtonV2/TouchButtonV2.ino @@ -1,7 +1,7 @@ /* This is an example how to use Touch Intrrerupts -The sketh will tell when it is touched and then relesased as like a push-button +The sketch will tell when it is touched and then released as like a push-button This method based on touchInterruptGetLastStatus() is only available for ESP32 S2 and S3 */ diff --git a/libraries/ESP32/examples/Zigbee/Zigbee_Light_Bulb/Zigbee_Light_Bulb.ino b/libraries/ESP32/examples/Zigbee/Zigbee_Light_Bulb/Zigbee_Light_Bulb.ino index b98b67cb4..c7e58125c 100644 --- a/libraries/ESP32/examples/Zigbee/Zigbee_Light_Bulb/Zigbee_Light_Bulb.ino +++ b/libraries/ESP32/examples/Zigbee/Zigbee_Light_Bulb/Zigbee_Light_Bulb.ino @@ -127,7 +127,7 @@ static void esp_zb_task(void *pvParameters) { esp_zb_set_primary_network_channel_set(ESP_ZB_PRIMARY_CHANNEL_MASK); //Erase NVRAM before creating connection to new Coordinator - esp_zb_nvram_erase_at_start(true); //Comment out this line to erase NVRAM data if you are conneting to new Coordinator + esp_zb_nvram_erase_at_start(true); //Comment out this line to erase NVRAM data if you are connecting to new Coordinator ESP_ERROR_CHECK(esp_zb_start(false)); esp_zb_main_loop_iteration(); diff --git a/libraries/ESP32/examples/Zigbee/Zigbee_Light_Switch/Zigbee_Light_Switch.ino b/libraries/ESP32/examples/Zigbee/Zigbee_Light_Switch/Zigbee_Light_Switch.ino index 6c19b145f..83ec1d7aa 100644 --- a/libraries/ESP32/examples/Zigbee/Zigbee_Light_Switch/Zigbee_Light_Switch.ino +++ b/libraries/ESP32/examples/Zigbee/Zigbee_Light_Switch/Zigbee_Light_Switch.ino @@ -159,7 +159,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) { esp_zb_bdb_start_top_level_commissioning(ESP_ZB_BDB_MODE_NETWORK_FORMATION); } else { log_i("Device rebooted"); - log_i("Openning network for joining for %d seconds", 180); + log_i("Opening network for joining for %d seconds", 180); esp_zb_bdb_open_network(180); } } else { diff --git a/libraries/ESP32/examples/Zigbee/Zigbee_Temperature_Sensor/Zigbee_Temperature_Sensor.ino b/libraries/ESP32/examples/Zigbee/Zigbee_Temperature_Sensor/Zigbee_Temperature_Sensor.ino index 6a7e00e50..a510c9680 100644 --- a/libraries/ESP32/examples/Zigbee/Zigbee_Temperature_Sensor/Zigbee_Temperature_Sensor.ino +++ b/libraries/ESP32/examples/Zigbee/Zigbee_Temperature_Sensor/Zigbee_Temperature_Sensor.ino @@ -255,7 +255,7 @@ static void esp_zb_task(void *pvParameters) { esp_zb_set_primary_network_channel_set(ESP_ZB_PRIMARY_CHANNEL_MASK); //Erase NVRAM before creating connection to new Coordinator - //esp_zb_nvram_erase_at_start(true); //Comment out this line to erase NVRAM data if you are conneting to new Coordinator + //esp_zb_nvram_erase_at_start(true); //Comment out this line to erase NVRAM data if you are connecting to new Coordinator ESP_ERROR_CHECK(esp_zb_start(false)); esp_zb_main_loop_iteration(); diff --git a/libraries/ESP32/examples/Zigbee/Zigbee_Thermostat/Zigbee_Thermostat.ino b/libraries/ESP32/examples/Zigbee/Zigbee_Thermostat/Zigbee_Thermostat.ino index 1ace7d866..f229b9f10 100644 --- a/libraries/ESP32/examples/Zigbee/Zigbee_Thermostat/Zigbee_Thermostat.ino +++ b/libraries/ESP32/examples/Zigbee/Zigbee_Thermostat/Zigbee_Thermostat.ino @@ -279,7 +279,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) { esp_zb_bdb_start_top_level_commissioning(ESP_ZB_BDB_MODE_NETWORK_FORMATION); } else { log_i("Device rebooted"); - log_i("Openning network for joining for %d seconds", 180); + log_i("Opening network for joining for %d seconds", 180); esp_zb_bdb_open_network(180); } } else { diff --git a/libraries/NetBIOS/src/NetBIOS.cpp b/libraries/NetBIOS/src/NetBIOS.cpp index ca2c29a4c..647f09408 100644 --- a/libraries/NetBIOS/src/NetBIOS.cpp +++ b/libraries/NetBIOS/src/NetBIOS.cpp @@ -12,7 +12,7 @@ typedef struct { uint8_t flags1; uint8_t flags2; uint16_t qcount; - uint16_t acount; + uint16_t acount; // codespell:ignore acount uint16_t nscount; uint16_t adcount; uint8_t name_len; @@ -26,7 +26,7 @@ typedef struct { uint8_t flags1; uint8_t flags2; uint16_t qcount; - uint16_t acount; + uint16_t acount; // codespell:ignore acount uint16_t nscount; uint16_t adcount; uint8_t name_len; @@ -84,7 +84,7 @@ void NetBIOS::_onPacket(AsyncUDPPacket &packet) { nbnsa.flags1 = 0x85; nbnsa.flags2 = 0; append_16((void *)&nbnsa.qcount, 0); - append_16((void *)&nbnsa.acount, 1); + append_16((void *)&nbnsa.acount, 1); // codespell:ignore acount append_16((void *)&nbnsa.nscount, 0); append_16((void *)&nbnsa.adcount, 0); nbnsa.name_len = question->name_len; diff --git a/libraries/NetworkClientSecure/examples/WiFiClientTrustOnFirstUse/WiFiClientTrustOnFirstUse.ino b/libraries/NetworkClientSecure/examples/WiFiClientTrustOnFirstUse/WiFiClientTrustOnFirstUse.ino index 5b683814d..afc588af7 100644 --- a/libraries/NetworkClientSecure/examples/WiFiClientTrustOnFirstUse/WiFiClientTrustOnFirstUse.ino +++ b/libraries/NetworkClientSecure/examples/WiFiClientTrustOnFirstUse/WiFiClientTrustOnFirstUse.ino @@ -22,7 +22,7 @@ https://en.wikipedia.org/wiki/Trust_on_first_use). In this scheme; we start the very first time without any security checks - but once we have our first connection; we store the public crytpographic + but once we have our first connection; we store the public cryptographic details (or a proxy, such as a sha256 of this). And then we use this for any subsequent connections. diff --git a/libraries/OpenThread/examples/COAP/coap_lamp/coap_lamp.ino b/libraries/OpenThread/examples/COAP/coap_lamp/coap_lamp.ino index 0e6504757..9b53373f7 100644 --- a/libraries/OpenThread/examples/COAP/coap_lamp/coap_lamp.ino +++ b/libraries/OpenThread/examples/COAP/coap_lamp/coap_lamp.ino @@ -90,7 +90,7 @@ bool otDeviceSetup(const char **otSetupCmds, uint8_t nCmds1, const char **otCoap } void setupNode() { - // tries to set the Thread Network node and only returns when succeded + // tries to set the Thread Network node and only returns when succeeded bool startedCorrectly = false; while (!startedCorrectly) { startedCorrectly |= diff --git a/libraries/OpenThread/examples/COAP/coap_switch/coap_switch.ino b/libraries/OpenThread/examples/COAP/coap_switch/coap_switch.ino index 37e5baa67..1d4293038 100644 --- a/libraries/OpenThread/examples/COAP/coap_switch/coap_switch.ino +++ b/libraries/OpenThread/examples/COAP/coap_switch/coap_switch.ino @@ -79,12 +79,12 @@ bool otDeviceSetup( } Serial.println("OpenThread setup done. Node is ready."); // all fine! LED goes and stays Blue - rgbLedWrite(RGB_BUILTIN, 0, 0, 64); // BLUE ... Swtich is ready! + rgbLedWrite(RGB_BUILTIN, 0, 0, 64); // BLUE ... Switch is ready! return true; } void setupNode() { - // tries to set the Thread Network node and only returns when succeded + // tries to set the Thread Network node and only returns when succeeded bool startedCorrectly = false; while (!startedCorrectly) { startedCorrectly |= otDeviceSetup( @@ -138,11 +138,11 @@ bool otCoapPUT(bool lampState) { return false; } -// this fucntion is used by the Switch mode to check the BOOT Button and send the user action to the Lamp node +// this function is used by the Switch mode to check the BOOT Button and send the user action to the Lamp node void checkUserButton() { static long unsigned int lastPress = 0; const long unsigned int debounceTime = 500; - static bool lastLampState = true; // first button press will turn the Lamp OFF from inital Green + static bool lastLampState = true; // first button press will turn the Lamp OFF from initial Green pinMode(USER_BUTTON, INPUT_PULLUP); // C6/H2 User Button if (millis() > lastPress + debounceTime && digitalRead(USER_BUTTON) == LOW) { @@ -150,7 +150,7 @@ void checkUserButton() { if (!otCoapPUT(lastLampState)) { // failed: Lamp Node is not responding due to be off or unreachable // timeout from the CoAP PUT message... restart the node. rgbLedWrite(RGB_BUILTIN, 255, 0, 0); // RED ... something failed! - Serial.println("Reseting the Node as Switch... wait."); + Serial.println("Resetting the Node as Switch... wait."); // start over... setupNode(); } diff --git a/libraries/OpenThread/src/OThreadCLI_Util.cpp b/libraries/OpenThread/src/OThreadCLI_Util.cpp index f26b964cc..d1b7f27a3 100644 --- a/libraries/OpenThread/src/OThreadCLI_Util.cpp +++ b/libraries/OpenThread/src/OThreadCLI_Util.cpp @@ -117,7 +117,7 @@ bool otExecCommand(const char *cmd, const char *arg, ot_cmd_return_t *returnCode i--; // search for ' ' before ":' } if (*i == ' ') { - i++; // move it forward to the number begining + i++; // move it forward to the number beginning returnCode->errorCode = atoi(i); returnCode->errorMessage = m; } // otherwise, it will keep the "bad error message" information diff --git a/libraries/PPP/src/PPP.cpp b/libraries/PPP/src/PPP.cpp index 8c25fe6aa..b687153ea 100644 --- a/libraries/PPP/src/PPP.cpp +++ b/libraries/PPP/src/PPP.cpp @@ -226,7 +226,7 @@ bool PPPClass::setPins(int8_t tx, int8_t rx, int8_t rts, int8_t cts, esp_modem_f bool PPPClass::begin(ppp_modem_model_t model, uint8_t uart_num, int baud_rate) { esp_err_t ret = ESP_OK; bool pin_ok = false; - int trys = 0; + int tries = 0; if (_esp_netif != NULL || _dce != NULL) { log_w("PPP Already Started"); @@ -313,11 +313,11 @@ bool PPPClass::begin(ppp_modem_model_t model, uint8_t uart_num, int baud_rate) { if (_pin_rst >= 0) { // wait to be able to talk to the modem log_v("Waiting for response from the modem"); - while (esp_modem_sync(_dce) != ESP_OK && trys < 100) { - trys++; + while (esp_modem_sync(_dce) != ESP_OK && tries < 100) { + tries++; delay(500); } - if (trys >= 100) { + if (tries >= 100) { log_e("Failed to wait for communication"); goto err; } diff --git a/libraries/RainMaker/src/RMakerDevice.cpp b/libraries/RainMaker/src/RMakerDevice.cpp index efeafac87..db431ba10 100644 --- a/libraries/RainMaker/src/RMakerDevice.cpp +++ b/libraries/RainMaker/src/RMakerDevice.cpp @@ -52,7 +52,7 @@ void Device::addCb(deviceWriteCb writeCb, deviceReadCb readCb) { esp_err_t Device::addDeviceAttr(const char *attr_name, const char *val) { err = esp_rmaker_device_add_attribute(getDeviceHandle(), attr_name, val); if (err != ESP_OK) { - log_e("Failed to add attriute to the device"); + log_e("Failed to add attribute to the device"); return err; } return ESP_OK; diff --git a/libraries/SPI/examples/SPI_Multiple_Buses/SPI_Multiple_Buses.ino b/libraries/SPI/examples/SPI_Multiple_Buses/SPI_Multiple_Buses.ino index 672d5fe2b..c73f6078c 100644 --- a/libraries/SPI/examples/SPI_Multiple_Buses/SPI_Multiple_Buses.ino +++ b/libraries/SPI/examples/SPI_Multiple_Buses/SPI_Multiple_Buses.ino @@ -45,7 +45,7 @@ static const int spiClk = 1000000; // 1 MHz -//uninitialised pointers to SPI objects +//uninitialized pointers to SPI objects SPIClass *vspi = NULL; SPIClass *hspi = NULL; diff --git a/libraries/Update/src/Updater.cpp b/libraries/Update/src/Updater.cpp index 4be13b9d1..78f93602c 100644 --- a/libraries/Update/src/Updater.cpp +++ b/libraries/Update/src/Updater.cpp @@ -393,7 +393,7 @@ bool UpdateClass::_writeBuffer() { } } - // try to skip empty blocks on unecrypted partitions + // try to skip empty blocks on unencrypted partitions if ((_partition->encrypted || _chkDataInBlock(_buffer + skip / sizeof(uint32_t), _bufferLen - skip)) && !ESP.partitionWrite(_partition, _progress + skip, (uint32_t *)_buffer + skip / sizeof(uint32_t), _bufferLen - skip)) { _abort(UPDATE_ERROR_WRITE); diff --git a/libraries/WebServer/examples/WebServer/WebServer.ino b/libraries/WebServer/examples/WebServer/WebServer.ino index be1b0bbbe..9871826bb 100644 --- a/libraries/WebServer/examples/WebServer/WebServer.ino +++ b/libraries/WebServer/examples/WebServer/WebServer.ino @@ -243,7 +243,7 @@ void setup(void) { TRACE("Starting WebServer example...\n"); - // ----- check partitions for finding the fileystem type ----- + // ----- check partitions for finding the filesystem type ----- esp_partition_iterator_t i; i = esp_partition_find(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_DATA_FAT, nullptr); diff --git a/tools/get.exe b/tools/get.exe index 13f81c367..161cb193c 100644 Binary files a/tools/get.exe and b/tools/get.exe differ diff --git a/tools/get.py b/tools/get.py index 19d48be5c..45f97d62f 100755 --- a/tools/get.py +++ b/tools/get.py @@ -171,7 +171,7 @@ def is_latest_version(destination, dirname, rename_to, cfile, checksum): except Exception as e: if verbose: - print(f"Falied to verify version for {rename_to}: {e}") + print(f"Failed to verify version for {rename_to}: {e}") return False diff --git a/variants/alfredo-nou3/pins_arduino.h b/variants/alfredo-nou3/pins_arduino.h index 9d7f57f03..88bdbea0b 100644 --- a/variants/alfredo-nou3/pins_arduino.h +++ b/variants/alfredo-nou3/pins_arduino.h @@ -5,7 +5,7 @@ #define USB_PID 0x0003 #define USB_MANUFACTURER "Alfredo" #define USB_PRODUCT "NoU3" -#define USB_SERIAL "" // Empty string for MAC adddress +#define USB_SERIAL "" // Empty string for MAC address // User LED #define LED_BUILTIN 45 diff --git a/variants/arduino_nano_nora/io_pin_remap.cpp b/variants/arduino_nano_nora/io_pin_remap.cpp index 5ed2b0efe..f615f5729 100644 --- a/variants/arduino_nano_nora/io_pin_remap.cpp +++ b/variants/arduino_nano_nora/io_pin_remap.cpp @@ -10,7 +10,7 @@ // This board uses pin mapping but the build system has disabled it #warning The build system forces the Arduino API to use GPIO numbers on a board that has custom pin mapping. #elif defined(BOARD_USES_HW_GPIO_NUMBERS) -// The user has chosen to disable pin mappin. +// The user has chosen to disable pin mapping. #warning The Arduino API will use GPIO numbers for this build. #endif diff --git a/variants/circuitart_zero_s3/pins_arduino.h b/variants/circuitart_zero_s3/pins_arduino.h index 930a081e0..adf38ca67 100644 --- a/variants/circuitart_zero_s3/pins_arduino.h +++ b/variants/circuitart_zero_s3/pins_arduino.h @@ -7,7 +7,7 @@ #define USB_PID 0x80DB #define USB_MANUFACTURER "CircuitART" #define USB_PRODUCT "ZeroS3" -#define USB_SERIAL "" // Empty string for MAC adddress +#define USB_SERIAL "" // Empty string for MAC address // User LED #define LED_BUILTIN 46