@@ -73,13 +73,15 @@ bool UpdateClass::_enablePartition(const esp_partition_t *partition) {
7373UpdateClass::UpdateClass ()
7474 : _error (0 ),
7575#ifndef UPDATE_NOCRYPT
76- _cryptKey (0 ), _cryptBuffer (0 ),
76+ _cryptKey (0 ), _cryptBuffer (0 ),
7777#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 )
7979#ifndef UPDATE_NOCRYPT
80- , _cryptMode (U_AES_DECRYPT_AUTO), _cryptAddress (0 ), _cryptCfg (0xf )
80+ ,
81+ _cryptMode (U_AES_DECRYPT_AUTO), _cryptAddress (0 ), _cryptCfg (0xf )
8182#endif /* UPDATE_NOCRYPT */
82- {}
83+ {
84+ }
8385
8486UpdateClass &UpdateClass::onProgress (THandlerFunction_Progress fn) {
8587 _progress_callback = fn;
@@ -378,7 +380,7 @@ bool UpdateClass::_writeBuffer() {
378380 return false ;
379381 }
380382 }
381- #endif /* UPDATE_NOCRYPT */
383+ #endif /* UPDATE_NOCRYPT */
382384 // first bytes of new firmware
383385 uint8_t skip = 0 ;
384386 if (!_progress && _command == U_FLASH) {
@@ -476,9 +478,11 @@ bool UpdateClass::_verifyEnd() {
476478 return false ;
477479}
478480
479- bool UpdateClass::setMD5 (const char *expected_md5
481+ bool UpdateClass::setMD5 (
482+ const char *expected_md5
480483#ifndef UPDATE_NOCRYPT
481- ,bool calc_post_decryption
484+ ,
485+ bool calc_post_decryption
482486#endif /* UPDATE_NOCRYPT */
483487) {
484488 if (strlen (expected_md5) != 32 ) {
0 commit comments