change usage of hackrf rx in capture_data() to as it in hackrf_transfer.c