diff --git a/HackRF_Streaming.cpp b/HackRF_Streaming.cpp index 9ea8514..ec432b0 100644 --- a/HackRF_Streaming.cpp +++ b/HackRF_Streaming.cpp @@ -516,32 +516,26 @@ void readbuf(int8_t * src, void * dst, uint32_t len,uint32_t format,size_t offse if(format==HACKRF_FORMAT_INT8){ int8_t *samples_cs8=(int8_t *) dst+offset*BYTES_PER_SAMPLE; - for (uint32_t i=0;i> 8); - dst[i*BYTES_PER_SAMPLE+1] = (int8_t) (samples_cs16[i*BYTES_PER_SAMPLE+1] >> 8); + for (uint32_t i=0;i> 8); } }else if(format==HACKRF_FORMAT_FLOAT32){ float *samples_cf32=(float *) src+offset*BYTES_PER_SAMPLE; - for (uint32_t i=0;i