mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-06 22:29:15 -04:00
Merge pull request #279 from GullCode/proc_capture_warning_fix
fix unused result
This commit is contained in:
commit
5ca7398bd9
1 changed files with 5 additions and 1 deletions
|
@ -44,7 +44,11 @@ void CaptureProcessor::execute(const buffer_c8_t& buffer) {
|
||||||
|
|
||||||
if( stream ) {
|
if( stream ) {
|
||||||
const size_t bytes_to_write = sizeof(*decimator_out.p) * decimator_out.count;
|
const size_t bytes_to_write = sizeof(*decimator_out.p) * decimator_out.count;
|
||||||
const auto result = stream->write(decimator_out.p, bytes_to_write);
|
const size_t written = stream->write(decimator_out.p, bytes_to_write);
|
||||||
|
if( written != bytes_to_write )
|
||||||
|
{
|
||||||
|
//TODO eventually report error somewhere
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
feed_channel_stats(channel);
|
feed_channel_stats(channel);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue