From 3633859d092ff82b42eb3de04b3924659239d567 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 27 Feb 2020 22:13:33 +0100 Subject: [PATCH] rf_imp.c: Ignore case when matching device_name This allows using device_name = UHD, uhd, ZMQ, zmq, etc. --- lib/src/phy/rf/rf_imp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/rf/rf_imp.c b/lib/src/phy/rf/rf_imp.c index 6b57fc4ea..e8794e022 100644 --- a/lib/src/phy/rf/rf_imp.c +++ b/lib/src/phy/rf/rf_imp.c @@ -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); }