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) {
|
if (tenms) {
|
||||||
tenms = 0;
|
tenms = 0;
|
||||||
|
|
||||||
if (state != ST_USB) {
|
if (state != ST_USB && state != ST_FLASHING && state != ST_FLASH_DONE) {
|
||||||
if (usbPlugged()) {
|
if (usbPlugged()) {
|
||||||
state = ST_USB;
|
state = ST_USB;
|
||||||
if (!unlocked) {
|
if (!unlocked) {
|
||||||
|
|||||||
Reference in New Issue
Block a user