Fixed USRP capture sync due to missing channel ptr

This commit is contained in:
David Rupprecht 2019-09-23 13:50:57 +02:00 committed by Andre Puschmann
parent b0fd588a23
commit f9a668861a
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,11 @@ void parse_args(int argc, char **argv) {
int srslte_rf_recv_wrapper(void *h, cf_t *data[SRSLTE_MAX_PORTS], uint32_t nsamples, srslte_timestamp_t *t) {
DEBUG(" ---- Receive %d samples ---- \n", nsamples);
return srslte_rf_recv_with_time_multi(h, (void**)data[0], nsamples, true, NULL, NULL);
void* ptr[SRSLTE_MAX_PORTS];
for (int i = 0; i < SRSLTE_MAX_PORTS; i++) {
ptr[i] = data[i];
}
return srslte_rf_recv_with_time_multi(h, ptr, nsamples, true, NULL, NULL);
}
int main(int argc, char **argv) {