mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Avoid synchronous flushes to flash during Blackbox shutdown
This commit is contained in:
parent
acd4745a4e
commit
d6911e8b86
5 changed files with 15 additions and 8 deletions
|
@ -415,7 +415,7 @@ void blackboxDeviceFlush(void)
|
|||
break;
|
||||
#ifdef USE_FLASHFS
|
||||
case BLACKBOX_DEVICE_FLASH:
|
||||
flashfsFlushSync();
|
||||
flashfsFlushAsync();
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
@ -503,8 +503,7 @@ bool isBlackboxDeviceIdle(void)
|
|||
|
||||
#ifdef USE_FLASHFS
|
||||
case BLACKBOX_DEVICE_FLASH:
|
||||
flashfsFlushSync();
|
||||
return true;
|
||||
return flashfsFlushAsync();
|
||||
#endif
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue