Skip to content

Commit

Permalink
Merge pull request #22 from rob040/TextualCorrections
Browse files Browse the repository at this point in the history
Some more typo's corrected
  • Loading branch information
cotestatnt authored Jan 10, 2024
2 parents 86dd508 + 6719d32 commit 3519cc5
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 @@ -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
Expand All @@ -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());
Expand All @@ -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());
Expand Down Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions src/AsyncFsWebServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 3519cc5

Please sign in to comment.