Skip to content

Commit

Permalink
more networking libraries support server.end()
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed Sep 21, 2023
1 parent 37ac78a commit 5b84d5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ArduinoOTA.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ class ArduinoOTAClass : public WiFiOTAClass {
}

void end() {
#if defined(ESP8266) || defined(ESP32)
server.stop();
#elif defined(_WIFI_ESP_AT_H_)
#if defined(_WIFI_ESP_AT_H_)|| defined(WiFiS3_h) || defined(ESP32) || defined(UIPETHERNET_H)
server.end();
#elif defined(ESP8266)
server.stop();
#else
//#warning "The networking library doesn't have a function to stop the server"
#endif
Expand Down

0 comments on commit 5b84d5e

Please sign in to comment.