mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -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) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user