rf_imp.c: Ignore case when matching device_name

This allows using device_name = UHD, uhd, ZMQ, zmq, etc.
master
Pau Espin Pedrol 5 years ago committed by Andre Puschmann
parent 91a5d1a74e
commit 3633859d09

@ -108,7 +108,7 @@ int srslte_rf_open_devname(srslte_rf_t* rf, const char* devname, char* args, uin
if (devname[0] != '\0') {
int i = 0;
while (available_devices[i] != NULL) {
if (!strcmp(available_devices[i]->name, devname)) {
if (!strcasecmp(available_devices[i]->name, devname)) {
rf->dev = available_devices[i];
return available_devices[i]->srslte_rf_open_multi(args, &rf->handler, nof_channels);
}

Loading…
Cancel
Save