mirror of
https://github.com/scottchiefbaker/ESP-WebOTA.git
synced 2024-08-30 18:12:33 +00:00
Work around some ESP32 slowness
This commit is contained in:
parent
904b2e42d7
commit
22c0406896
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user