Skip to content

Commit 83f1b37

Browse files
authored
Fix gzip+signed OTA error
PR esp8266#7577
1 parent c089c71 commit 83f1b37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp8266/Updater.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ bool UpdaterClass::end(bool evenIfRemaining){
280280
return false;
281281
}
282282
free(sig);
283+
_size = binSize; // Adjust size to remove signature, not part of bin payload
284+
283285
#ifdef DEBUG_UPDATER
284286
DEBUG_UPDATER.printf_P(PSTR("[Updater] Signature matches\n"));
285287
#endif

0 commit comments

Comments
 (0)