fix(pa01): SD storage hangs after copy a large file (#6783)

Co-authored-by: 3djc <3djc@gh.com>
This commit is contained in:
richardclli
2025-12-05 11:43:51 +10:00
committed by GitHub
co-authored by 3djc
parent 12801409da
commit 86b51fdd23
14 changed files with 63 additions and 9 deletions
+4
View File
@@ -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;
}