Prevent USB activation while flashing firmware (#672)

* Prevent USB activation while flashing firmware
* Also prevent USB if at FLASH_DONE screen
This commit is contained in:
Peter Feerick
2021-09-14 16:03:11 +10:00
committed by GitHub
parent 6278335eb9
commit cc0c530f3f
@@ -289,7 +289,7 @@ int main()
if (tenms) {
tenms = 0;
if (state != ST_USB) {
if (state != ST_USB && state != ST_FLASHING && state != ST_FLASH_DONE) {
if (usbPlugged()) {
state = ST_USB;
if (!unlocked) {