mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
use ArduinoOTA class in OTA-mDNS.SPIFFS example
This commit is contained in:
@ -67,7 +67,7 @@ void ArduinoOTA::handle() {
|
||||
|
||||
WiFiUDP::stopAll();
|
||||
|
||||
if(!Update.begin(size)){
|
||||
if(!Update.begin(size, cmd)){
|
||||
if (_serial_debug)
|
||||
Serial.println("Update Begin Error");
|
||||
if (_error_callback) _error_callback();
|
||||
|
Reference in New Issue
Block a user