Skip to content

Commit

Permalink
Some more typo's corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
rob040 committed Jan 10, 2024
1 parent 2950b5c commit 6719d32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/AsyncFsWebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
Expand All @@ -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());
Expand Down Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions src/AsyncFsWebServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 6719d32

Please sign in to comment.