tinyuf2
tinyuf2 copied to clipboard
Add capability to force stay in DFU (and erase app) with button if
Checklist
- [x] Please provide specific title of the PR describing the change
- [x] Please provide related links (eg. Issue which will be closed by this Pull Request)
Description of Change
Add capability to force stay in DFU (and erase app) with button if TINYUF2_DFU_BUTTON is set to 1.
This adds a check to see if a button is pressed. If the board button is pressed, stay if dfu mode.
If TINYUF2_DFU_BUTTON_ERASE is also set to 1, then the app is erased.
Initially opened discussion here. But decided to just go ahead and open a PR. Feel free to close this if you think it's not a feature you want to have integrated.