aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/super_recv_packet_handler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport/super_recv_packet_handler.hpp')
-rw-r--r--host/lib/transport/super_recv_packet_handler.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/transport/super_recv_packet_handler.hpp b/host/lib/transport/super_recv_packet_handler.hpp
index 48b0acdb9..57aae96b1 100644
--- a/host/lib/transport/super_recv_packet_handler.hpp
+++ b/host/lib/transport/super_recv_packet_handler.hpp
@@ -523,7 +523,9 @@ private:
}
//copy-convert the samples from the recv buffer
- _converter(buff_info.copy_buff, _io_buffs, nsamps_to_copy_per_io_buff, _scale_factor);
+ if (nsamps_to_copy_per_io_buff != 0) _converter(
+ buff_info.copy_buff, _io_buffs, nsamps_to_copy_per_io_buff, _scale_factor
+ );
//update the rx copy buffer to reflect the bytes copied
buff_info.copy_buff += bytes_to_copy;