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
+3
View File
@@ -104,6 +104,7 @@ uint8_t latencyToggleSwitch = 0;
#endif
volatile uint8_t rtc_count = 0;
bool suspendI2CTasks = false;
#if defined(DEBUG_LATENCY)
void toggleLatencySwitch()
@@ -1089,6 +1090,7 @@ void edgeTxClose(uint8_t shutdown)
TRACE("edgeTxClose");
watchdogSuspend(2000/*20s*/);
suspendI2CTasks = true;
if (shutdown) {
pulsesStop();
@@ -1140,6 +1142,7 @@ void edgeTxResume()
{
TRACE("edgeTxResume");
suspendI2CTasks = false;
if (!sdMounted()) sdInit();
luaInitMainState();