Skip to content

Commit 120edca

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 11ce752 commit 120edca

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

libraries/Update/src/Update.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class UpdateClass {
139139
sets the expected MD5 for the firmware (hexString)
140140
If calc_post_decryption is true, the update library will calculate the MD5 after the decryption, if false the calculation occurs before the decryption
141141
*/
142-
bool setMD5(const char *expected_md5, bool calc_post_decryption=true);
142+
bool setMD5(const char *expected_md5, bool calc_post_decryption = true);
143143

144144
/*
145145
returns the MD5 String of the successfully ended firmware
@@ -257,9 +257,9 @@ class UpdateClass {
257257
uint32_t _command;
258258
const esp_partition_t *_partition;
259259

260-
String _target_md5;
261-
bool _target_md5_decrypted=true;
262-
MD5Builder _md5;
260+
String _target_md5;
261+
bool _target_md5_decrypted = true;
262+
MD5Builder _md5;
263263

264264
int _ledPin;
265265
uint8_t _ledOn;

libraries/Update/src/Updater.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ bool UpdateClass::_writeBuffer() {
349349
}
350350
}
351351

352-
if(!_target_md5_decrypted){
352+
if (!_target_md5_decrypted) {
353353
_md5.add(_buffer, _bufferLen);
354354
}
355355

@@ -409,9 +409,9 @@ bool UpdateClass::_writeBuffer() {
409409
if (!_progress && _command == U_FLASH) {
410410
_buffer[0] = ESP_IMAGE_HEADER_MAGIC;
411411
}
412-
if(_target_md5_decrypted){
412+
if (_target_md5_decrypted) {
413413
_md5.add(_buffer, _bufferLen);
414-
}
414+
}
415415
_progress += _bufferLen;
416416
_bufferLen = 0;
417417
if (_progress_callback) {
@@ -459,7 +459,7 @@ bool UpdateClass::setMD5(const char *expected_md5, bool calc_post_decryption) {
459459
}
460460
_target_md5 = expected_md5;
461461
_target_md5.toLowerCase();
462-
_target_md5_decrypted=calc_post_decryption;
462+
_target_md5_decrypted = calc_post_decryption;
463463
return true;
464464
}
465465

0 commit comments

Comments
 (0)