Skip to content

Commit 67a07ed

Browse files
Fix FS upload crash (#1598)
Thanks to @pietglas for finding and fixing. See #1590 for more info.
1 parent 1dc0872 commit 67a07ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/Updater/src/Updater.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ bool UpdaterClass::begin(size_t size, int command) {
123123

124124
//initialize
125125
_startAddress = updateStartAddress;
126+
_currentAddress = _startAddress; // Only used in the FS upload case
126127
_size = size;
127128
_bufferSize = 4096;
128129
_buffer = new uint8_t[_bufferSize];

0 commit comments

Comments
 (0)