mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 03:34:35 +00:00
fix unused result
This commit is contained in:
parent
19ebf14e8c
commit
961e115cc6
@ -44,7 +44,11 @@ void CaptureProcessor::execute(const buffer_c8_t& buffer) {
|
||||
|
||||
if( stream ) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user