diff --git a/src/AsyncFsWebServer.cpp b/src/AsyncFsWebServer.cpp index f6e7791e..a823892f 100644 --- a/src/AsyncFsWebServer.cpp +++ b/src/AsyncFsWebServer.cpp @@ -396,13 +396,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 @@ -413,7 +413,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()); @@ -422,7 +422,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()); @@ -673,7 +673,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 8f7ccc70..6d1c3c61 100644 --- a/src/AsyncFsWebServer.h +++ b/src/AsyncFsWebServer.h @@ -70,7 +70,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 deleteContent(String& path) ; void handleFileDelete(AsyncWebServerRequest *request); @@ -135,7 +135,7 @@ class AsyncFsWebServer : public AsyncWebServer #endif /* - Start webserver aand bind a websocket event handler (optional) + Start webserver and bind a websocket event handler (optional) */ bool init(AwsEventHandler wsHandle = nullptr);