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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user