mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-05 20:14:53 -04:00
Move buffer reset out of buffer exchange class.
This commit is contained in:
parent
2433ea30ad
commit
fadbbcc581
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue