Replay: avoid dataflash buffer filling up on many pass-through messages

This commit is contained in:
Peter Barker 2015-06-09 00:27:29 +10:00 committed by Andrew Tridgell
parent 5fb46b0e11
commit f4db241bf6

View File

@ -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];