stop radio after radio error

master
Andre Puschmann 7 years ago
parent f619f53cc4
commit 5d5e8167b7

@ -383,7 +383,6 @@ double rf_soapy_set_tx_freq(void *h, double freq)
fprintf(stderr, "Failed to set Tx antenna.\n");
}
char *ant = SoapySDRDevice_getAntenna(handler->device, SOAPY_SDR_TX, 0);
printf("Tx antenna set to %s\n", ant);

@ -171,6 +171,7 @@ void phch_recv::radio_error() {
// Need to find a method to effectively reset radio, reloading the driver does not work
//radio_h->reset();
radio_h->stop();
fprintf(stdout, "Error while receiving samples. Restart srsUE\n");
exit(-1);

Loading…
Cancel
Save