mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
DataFlash: wait for blocks to finish writing to flash on log read
This commit is contained in:
parent
8e0a136d78
commit
89f121ea77
@ -92,6 +92,7 @@ void DataFlash_Block::get_log_boundaries(uint16_t log_num, uint16_t & start_page
|
||||
|
||||
if (df_BufferIdx != 0) {
|
||||
FinishWrite();
|
||||
hal.scheduler->delay(100);
|
||||
}
|
||||
|
||||
if(num == 1)
|
||||
@ -410,6 +411,7 @@ void DataFlash_Block::LogReadProcess(uint16_t log_num,
|
||||
|
||||
if (df_BufferIdx != 0) {
|
||||
FinishWrite();
|
||||
hal.scheduler->delay(100);
|
||||
}
|
||||
|
||||
StartRead(start_page);
|
||||
|
Loading…
Reference in New Issue
Block a user