@@ -73,13 +73,15 @@ bool UpdateClass::_enablePartition(const esp_partition_t *partition) {
73
73
UpdateClass::UpdateClass ()
74
74
: _error (0 ),
75
75
#ifndef UPDATE_NOCRYPT
76
- _cryptKey (0 ), _cryptBuffer (0 ),
76
+ _cryptKey (0 ), _cryptBuffer (0 ),
77
77
#endif /* UPDATE_NOCRYPT */
78
- _buffer (0 ), _skipBuffer (0 ), _bufferLen (0 ), _size (0 ), _progress_callback (NULL ), _progress (0 ), _paroffset (0 ), _command (U_FLASH), _partition (NULL )
78
+ _buffer (0 ), _skipBuffer (0 ), _bufferLen (0 ), _size (0 ), _progress_callback (NULL ), _progress (0 ), _paroffset (0 ), _command (U_FLASH), _partition (NULL )
79
79
#ifndef UPDATE_NOCRYPT
80
- , _cryptMode (U_AES_DECRYPT_AUTO), _cryptAddress (0 ), _cryptCfg (0xf )
80
+ ,
81
+ _cryptMode (U_AES_DECRYPT_AUTO), _cryptAddress (0 ), _cryptCfg (0xf )
81
82
#endif /* UPDATE_NOCRYPT */
82
- {}
83
+ {
84
+ }
83
85
84
86
UpdateClass &UpdateClass::onProgress (THandlerFunction_Progress fn) {
85
87
_progress_callback = fn;
@@ -378,7 +380,7 @@ bool UpdateClass::_writeBuffer() {
378
380
return false ;
379
381
}
380
382
}
381
- #endif /* UPDATE_NOCRYPT */
383
+ #endif /* UPDATE_NOCRYPT */
382
384
// first bytes of new firmware
383
385
uint8_t skip = 0 ;
384
386
if (!_progress && _command == U_FLASH) {
@@ -476,9 +478,11 @@ bool UpdateClass::_verifyEnd() {
476
478
return false ;
477
479
}
478
480
479
- bool UpdateClass::setMD5 (const char *expected_md5
481
+ bool UpdateClass::setMD5 (
482
+ const char *expected_md5
480
483
#ifndef UPDATE_NOCRYPT
481
- ,bool calc_post_decryption
484
+ ,
485
+ bool calc_post_decryption
482
486
#endif /* UPDATE_NOCRYPT */
483
487
) {
484
488
if (strlen (expected_md5) != 32 ) {
0 commit comments