From 6719d32259e0717d761fa0cdc82d22618a90507e Mon Sep 17 00:00:00 2001 From: rob040 Date: Wed, 10 Jan 2024 12:40:12 +0100 Subject: [PATCH] Some more typo's corrected --- src/AsyncFsWebServer.cpp | 10 +++++----- src/AsyncFsWebServer.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/AsyncFsWebServer.cpp b/src/AsyncFsWebServer.cpp index 33bc354d..92b41426 100644 --- a/src/AsyncFsWebServer.cpp +++ b/src/AsyncFsWebServer.cpp @@ -509,13 +509,13 @@ void AsyncFsWebServer::doWifiConnection(AsyncWebServerRequest *request) { #if defined(ESP8266) struct station_config stationConf; wifi_station_get_config_default(&stationConf); - // Clear previuos configuration + // Clear previous configuration memset(&stationConf, 0, sizeof(stationConf)); wifi_station_set_config(&stationConf); #elif defined(ESP32) wifi_config_t stationConf; esp_wifi_get_config(WIFI_IF_STA, &stationConf); - // Clear previuos configuration + // Clear previous configuration memset(&stationConf, 0, sizeof(stationConf)); esp_wifi_set_config(WIFI_IF_STA, &stationConf); #endif @@ -526,7 +526,7 @@ void AsyncFsWebServer::doWifiConnection(AsyncWebServerRequest *request) { #if defined(ESP8266) struct station_config stationConf; wifi_station_get_config_default(&stationConf); - // Clear previuos configuration + // Clear previous configuration memset(&stationConf, 0, sizeof(stationConf)); os_memcpy(&stationConf.ssid, ssid.c_str(), ssid.length()); os_memcpy(&stationConf.password, pass.c_str(), pass.length()); @@ -535,7 +535,7 @@ void AsyncFsWebServer::doWifiConnection(AsyncWebServerRequest *request) { #elif defined(ESP32) wifi_config_t stationConf; esp_wifi_get_config(WIFI_IF_STA, &stationConf); - // Clear previuos configuration + // Clear previous configuration memset(&stationConf, 0, sizeof(stationConf)); memcpy(&stationConf.sta.ssid, ssid.c_str(), ssid.length()); memcpy(&stationConf.sta.password, pass.c_str(), pass.length()); @@ -785,7 +785,7 @@ void AsyncFsWebServer::handleFileEdit(AsyncWebServerRequest *request) { /* Return the list of files in the directory specified by the "dir" query string parameter. - Also demonstrates the use of chuncked responses. + Also demonstrates the use of chunked responses. */ void AsyncFsWebServer::handleFileList(AsyncWebServerRequest *request) { diff --git a/src/AsyncFsWebServer.h b/src/AsyncFsWebServer.h index 25b3ad00..da17fc27 100644 --- a/src/AsyncFsWebServer.h +++ b/src/AsyncFsWebServer.h @@ -69,7 +69,7 @@ class AsyncFsWebServer : public AsyncWebServer void update_first(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final); void update_second(AsyncWebServerRequest *request); - // edit page, in usefull in some situation, but if you need to provide only a web interface, you can disable + // edit page, in useful in some situation, but if you need to provide only a web interface, you can disable #ifdef INCLUDE_EDIT_HTM void deleteFolderContent(File& root) ; void handleFileDelete(AsyncWebServerRequest *request); @@ -139,7 +139,7 @@ class AsyncFsWebServer : public AsyncWebServer } /* - Start webserver aand bind a websocket event handler (optional) + Start webserver and bind a websocket event handler (optional) */ bool init(AwsEventHandler wsHandle = nullptr);