mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
Replay: avoid dataflash buffer filling up on many pass-through messages
This commit is contained in:
parent
5fb46b0e11
commit
f4db241bf6
@ -233,6 +233,10 @@ bool LogReader::update(char type[5])
|
||||
|
||||
if (!in_list(type, generated_types)) {
|
||||
dataflash.WriteBlock(msg, f.length);
|
||||
// a MsgHandler would probably have found a timestamp and
|
||||
// caled stop_clock. This runs IO, clearing dataflash's
|
||||
// buffer.
|
||||
hal.scheduler->stop_clock(last_timestamp_usec);
|
||||
}
|
||||
|
||||
MsgHandler *p = msgparser[f.type];
|
||||
|
Loading…
Reference in New Issue
Block a user