diff --git a/libraries/Update/src/Update.h b/libraries/Update/src/Update.h index 42fa591b..2bf4dc46 100644 --- a/libraries/Update/src/Update.h +++ b/libraries/Update/src/Update.h @@ -162,12 +162,12 @@ class UpdateClass { bool _verifyHeader(uint8_t data); bool _verifyEnd(); - THandlerFunction_Progress _progress_callback; uint8_t _error; uint8_t *_buffer; size_t _bufferLen; size_t _size; + THandlerFunction_Progress _progress_callback; uint32_t _progress; uint32_t _command; const esp_partition_t* _partition; diff --git a/libraries/Update/src/Updater.cpp b/libraries/Update/src/Updater.cpp index ad35a8d7..d2ea1e9b 100644 --- a/libraries/Update/src/Updater.cpp +++ b/libraries/Update/src/Updater.cpp @@ -68,10 +68,10 @@ UpdateClass::UpdateClass() , _buffer(0) , _bufferLen(0) , _size(0) +, _progress_callback(NULL) , _progress(0) , _command(U_FLASH) , _partition(NULL) -, _progress_callback(NULL) { }