From bac560901f4f87a4619c3e8c1cd431e7c732483f Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Thu, 18 Jan 2018 01:19:30 +0200 Subject: [PATCH] Reorder Updater init --- libraries/Update/src/Update.h | 2 +- libraries/Update/src/Updater.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { }