fixed segfault in usrp_capture_sync

master
Ismael Gomez 8 years ago
parent fc6a38cad1
commit 460adc4a18

@ -100,7 +100,7 @@ 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) { 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); DEBUG(" ---- Receive %d samples ---- \n", nsamples);
return srslte_rf_recv(h, data[2], nsamples, 1); return srslte_rf_recv(h, data[0], nsamples, 1);
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {

Loading…
Cancel
Save