Skip to content

Commit

Permalink
Work around some ESP32 slowness
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed Mar 9, 2023
1 parent 904b2e4 commit 22c0406
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/WebOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ int WebOTA::init(const unsigned int port, const char *path) {
}

add_http_routes(&OTAServer, path);

#ifdef ESP32
// https://github.com/espressif/arduino-esp32/issues/7708
// Fix some slowness
OTAServer.enableDelay(false);
#endif
OTAServer.begin(port);

Serial.printf("WebOTA url : http://%s.local:%d%s\r\n\r\n", this->mdns.c_str(), port, path);
Expand Down

0 comments on commit 22c0406

Please sign in to comment.