Skip to content

Make firmware updating more foolproof#469

Merged
JF002 merged 6 commits intoInfiniTimeOrg:developfrom
Riksu9000:foolproof_update
Jul 22, 2021
Merged

Make firmware updating more foolproof#469
JF002 merged 6 commits intoInfiniTimeOrg:developfrom
Riksu9000:foolproof_update

Conversation

@Riksu9000
Copy link
Copy Markdown
Contributor

Made the firmware update screen not exitable by the user. The screen closes automatically if an error occurs.
Added precautions to make sure the device doesn't sleep during firmware update.
Fixed bugs like State not resetting on error, and BleFirmwareUpdateFinished message being pushed before the Validated state was set.
Fixes #316

@JF002 JF002 added this to the Version 1.3 milestone Jul 20, 2021
Copy link
Copy Markdown
Collaborator

@JF002 JF002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! I've just tested the code, the only thing I would add is this small change to prevent the user from closing the app with a swipe on the display.

I've even been able to restart an OTA after a failed one, which was not working previously, awesome :+1 !

Comment thread src/displayapp/screens/FirmwareUpdate.cpp
Comment thread src/displayapp/DisplayApp.cpp Outdated
@JF002 JF002 merged commit 0a0f28f into InfiniTimeOrg:develop Jul 22, 2021
@Riksu9000 Riksu9000 deleted the foolproof_update branch July 22, 2021 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Repeatable firmware update failure in 1.0

2 participants