Skip to content

Commit bac5609

Browse files
committed
Reorder Updater init
1 parent d650ac6 commit bac5609

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/Update/src/Update.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ class UpdateClass {
162162
bool _verifyHeader(uint8_t data);
163163
bool _verifyEnd();
164164

165-
THandlerFunction_Progress _progress_callback;
166165

167166
uint8_t _error;
168167
uint8_t *_buffer;
169168
size_t _bufferLen;
170169
size_t _size;
170+
THandlerFunction_Progress _progress_callback;
171171
uint32_t _progress;
172172
uint32_t _command;
173173
const esp_partition_t* _partition;

libraries/Update/src/Updater.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ UpdateClass::UpdateClass()
6868
, _buffer(0)
6969
, _bufferLen(0)
7070
, _size(0)
71+
, _progress_callback(NULL)
7172
, _progress(0)
7273
, _command(U_FLASH)
7374
, _partition(NULL)
74-
, _progress_callback(NULL)
7575
{
7676
}
7777

0 commit comments

Comments
 (0)