Skip to content

Commit

Permalink
only update the ebcmd on a good verify
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstroud committed May 31, 2024
1 parent b2319db commit 3df1e66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,8 @@ void handle_firmware_upload()
else if (_authenticatedUpdate && upload.status == UPLOAD_FILE_END && !_updaterError.length())
{
Serial.printf("\n"); // newline after last of the dot dot dots
if (Update.end(true))
// Only update the ebcmd on after a good verify cycle
if (Update.end(true, verify))
{
if (verify)
{
Expand Down

0 comments on commit 3df1e66

Please sign in to comment.