Move buffer reset out of buffer exchange class.

This commit is contained in:
Jared Boone 2016-10-04 22:17:57 -07:00
parent 2433ea30ad
commit fadbbcc581

View File

@ -37,7 +37,6 @@ public:
}
bool put_empty(StreamBuffer* const p) {
p->empty();
return fifo_buffers_empty->in(p);
}
@ -138,6 +137,7 @@ Optional<File::Error> CaptureThread::run() {
if( write_result.is_error() ) {
return write_result.error();
}
buffer->empty();
stream.put_empty(buffer);
} else {
chEvtWaitAny(event_mask_loop_wake);