mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
SDCard: multi-block write, card profiling. AFATFS: Bugfixes
This commit is contained in:
parent
518c765620
commit
360ea84a14
9 changed files with 533 additions and 105 deletions
|
@ -1402,7 +1402,7 @@ void handleBlackbox(void)
|
|||
* (overflowing circular buffers causes all data to be discarded, so the first few logged iterations
|
||||
* could wipe out the end of the header if we weren't careful)
|
||||
*/
|
||||
if (blackboxDeviceFlush()) {
|
||||
if (blackboxDeviceFlushForce()) {
|
||||
blackboxSetState(BLACKBOX_STATE_RUNNING);
|
||||
}
|
||||
}
|
||||
|
@ -1444,7 +1444,7 @@ void handleBlackbox(void)
|
|||
*
|
||||
* Don't wait longer than it could possibly take if something funky happens.
|
||||
*/
|
||||
if (blackboxDeviceEndLog(blackboxLoggedAnyFrames) && (millis() > xmitState.u.startTime + BLACKBOX_SHUTDOWN_TIMEOUT_MILLIS || blackboxDeviceFlush())) {
|
||||
if (blackboxDeviceEndLog(blackboxLoggedAnyFrames) && (millis() > xmitState.u.startTime + BLACKBOX_SHUTDOWN_TIMEOUT_MILLIS || blackboxDeviceFlushForce())) {
|
||||
blackboxDeviceClose();
|
||||
blackboxSetState(BLACKBOX_STATE_STOPPED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue