From fadbbcc5816eeb35903aac595c196a9dd54790c4 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 4 Oct 2016 22:17:57 -0700 Subject: [PATCH] Move buffer reset out of buffer exchange class. --- firmware/application/capture_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/application/capture_thread.cpp b/firmware/application/capture_thread.cpp index 08af9e4a9..c2fe44871 100644 --- a/firmware/application/capture_thread.cpp +++ b/firmware/application/capture_thread.cpp @@ -37,7 +37,6 @@ public: } bool put_empty(StreamBuffer* const p) { - p->empty(); return fifo_buffers_empty->in(p); } @@ -138,6 +137,7 @@ Optional CaptureThread::run() { if( write_result.is_error() ) { return write_result.error(); } + buffer->empty(); stream.put_empty(buffer); } else { chEvtWaitAny(event_mask_loop_wake);