fix(pa01): SD storage hangs after copy a large file (#6783)
Co-authored-by: 3djc <3djc@gh.com>
This commit is contained in:
@@ -41,6 +41,8 @@
|
||||
#define SEL_CLEAR_FLASH_STORAGE_MENU_LEN 2
|
||||
#endif
|
||||
|
||||
bool suspendI2CTasks = false;
|
||||
|
||||
void pollInputs()
|
||||
{
|
||||
keysPollingCycle();
|
||||
@@ -109,6 +111,7 @@ void bootloaderMenu()
|
||||
if (usbPlugged()) {
|
||||
state = ST_USB;
|
||||
#if !defined(SIMU)
|
||||
suspendI2CTasks = true;
|
||||
usbStart();
|
||||
#endif
|
||||
}
|
||||
@@ -119,6 +122,7 @@ void bootloaderMenu()
|
||||
vpos = 0;
|
||||
#if !defined(SIMU)
|
||||
usbStop();
|
||||
suspendI2CTasks = false;
|
||||
#endif
|
||||
state = ST_START;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user