Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Fix ESP8266 cannot OTA after failed OTA attempt (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoWinter committed Mar 24, 2019
1 parent 2cfc533 commit 5f66f52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/esphome/ota_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ void OTAComponent::handle_() {
if (update_started) {
Update.abort();
}
#endif
#ifdef ARDUINO_ARCH_ESP8266
if (update_started) {
Update.end();
}
#endif
this->status_momentary_error("onerror", 5000);
#ifdef ARDUINO_ARCH_ESP8266
Expand Down

0 comments on commit 5f66f52

Please sign in to comment.