Skip to content

Commit

Permalink
Fix gzip+signed OTA error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Sep 4, 2020
1 parent c089c71 commit 83f1b37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cores/esp8266/Updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ bool UpdaterClass::end(bool evenIfRemaining){
return false;
}
free(sig);
_size = binSize; // Adjust size to remove signature, not part of bin payload

#ifdef DEBUG_UPDATER
DEBUG_UPDATER.printf_P(PSTR("[Updater] Signature matches\n"));
#endif
Expand Down

0 comments on commit 83f1b37

Please sign in to comment.