Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
09577768
Unverified
Commit
09577768
authored
Oct 01, 2020
by
Cristian Popescu
Committed by
GitHub
Oct 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reinit updater md5 related fields (#4260)
MD5 cleanup on begin Typos
parent
d93245d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
libraries/Update/src/Update.h
libraries/Update/src/Update.h
+2
-2
libraries/Update/src/Updater.cpp
libraries/Update/src/Updater.cpp
+2
-0
No files found.
libraries/Update/src/Update.h
View file @
09577768
...
...
@@ -90,12 +90,12 @@ class UpdateClass {
bool
setMD5
(
const
char
*
expected_md5
);
/*
returns the MD5 String of the sucessfully ended firmware
returns the MD5 String of the suc
c
essfully ended firmware
*/
String
md5String
(
void
){
return
_md5
.
toString
();
}
/*
populated the result with the md5 bytes of the sucessfully ended firmware
populated the result with the md5 bytes of the suc
c
essfully ended firmware
*/
void
md5
(
uint8_t
*
result
){
return
_md5
.
getBytes
(
result
);
}
...
...
libraries/Update/src/Updater.cpp
View file @
09577768
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment