|
|
@ -270,7 +270,7 @@ int srslte_ringbuffer_read_convert_conj(srslte_ringbuffer_t* q, cf_t* dst_ptr, f
|
|
|
|
if (nof_bytes + q->rpm > q->capacity) {
|
|
|
|
if (nof_bytes + q->rpm > q->capacity) {
|
|
|
|
int x = (q->capacity - q->rpm);
|
|
|
|
int x = (q->capacity - q->rpm);
|
|
|
|
srslte_vec_convert_if(src, norm, dst, x / 2);
|
|
|
|
srslte_vec_convert_if(src, norm, dst, x / 2);
|
|
|
|
srslte_vec_convert_if((int16_t*)q->buffer, norm, &dst[x], 2 * nof_samples - x / 2);
|
|
|
|
srslte_vec_convert_if((int16_t*)q->buffer, norm, &dst[x / 2], 2 * nof_samples - x / 2);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
srslte_vec_convert_if(src, norm, dst, 2 * nof_samples);
|
|
|
|
srslte_vec_convert_if(src, norm, dst, 2 * nof_samples);
|
|
|
|
}
|
|
|
|
}
|
|
|
|