Reinit updater md5 related fields (#4260)

MD5 cleanup on begin
Typos
This commit is contained in:
Cristian Popescu
2020-10-01 15:29:58 +03:00
committed by GitHub
parent d93245d0f5
commit 0957776855
2 changed files with 4 additions and 2 deletions

View File

@ -115,6 +115,8 @@ bool UpdateClass::begin(size_t size, int command, int ledPin, uint8_t ledOn) {
_reset();
_error = 0;
_target_md5 = emptyString;
_md5 = MD5Builder();
if(size == 0) {
_error = UPDATE_ERROR_SIZE;