mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 23:39:29 -05:00
Move buffer reset out of buffer exchange class.
This commit is contained in:
parent
2433ea30ad
commit
fadbbcc581
@ -37,7 +37,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool put_empty(StreamBuffer* const p) {
|
bool put_empty(StreamBuffer* const p) {
|
||||||
p->empty();
|
|
||||||
return fifo_buffers_empty->in(p);
|
return fifo_buffers_empty->in(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,6 +137,7 @@ Optional<File::Error> CaptureThread::run() {
|
|||||||
if( write_result.is_error() ) {
|
if( write_result.is_error() ) {
|
||||||
return write_result.error();
|
return write_result.error();
|
||||||
}
|
}
|
||||||
|
buffer->empty();
|
||||||
stream.put_empty(buffer);
|
stream.put_empty(buffer);
|
||||||
} else {
|
} else {
|
||||||
chEvtWaitAny(event_mask_loop_wake);
|
chEvtWaitAny(event_mask_loop_wake);
|
||||||
|
Loading…
Reference in New Issue
Block a user