stop radio after radio error

This commit is contained in:
Andre Puschmann 2017-10-06 15:04:17 +02:00
parent f619f53cc4
commit 5d5e8167b7
2 changed files with 1 additions and 1 deletions

View File

@ -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);

View File

@ -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);