Browse Source

ota: arduinoota reboots after end callback

master
Maxim Prokhorov 5 years ago
parent
commit
808d2b533d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      code/espurna/ota_arduinoota.ino

+ 4
- 1
code/espurna/ota_arduinoota.ino View File

@ -48,7 +48,10 @@ void _arduinoOtaOnEnd() {
#if WEB_SUPPORT
wsSend_P(PSTR("{\"action\": \"reload\"}"));
#endif
deferredReset(100, CUSTOM_RESET_OTA);
// Note: ArduinoOTA will reset the board after this callback returns.
customResetReason(CUSTOM_RESET_OTA);
nice_delay(100);
}


Loading…
Cancel
Save