-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add capability to force stay in DFU and erase app with button
This adds a check to see if a button is pressed. If the board button is pressed, stay if dfu mode. Behavior is currently: * If button is pressed at power up, enter DFU mode regardless of whether app is valid. * If button is held longer than a timeout (Default 5 seconds), the app is erased. * If button is released within the timeout period, the app is booted, if it's valid.
- Loading branch information
Showing
4 changed files
with
229 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.