From 764c3b574e9f5b193d1048a4fc19ff4c0d81e26d Mon Sep 17 00:00:00 2001 From: David Rupprecht Date: Tue, 1 May 2018 12:52:43 +0200 Subject: [PATCH] Add limeSDR mini devname --- lib/src/phy/rf/rf_soapy_imp.c | 2 ++ lib/src/phy/rf/rf_soapy_imp.h | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/src/phy/rf/rf_soapy_imp.c b/lib/src/phy/rf/rf_soapy_imp.c index 08d89b60a..b935cc03b 100644 --- a/lib/src/phy/rf/rf_soapy_imp.c +++ b/lib/src/phy/rf/rf_soapy_imp.c @@ -209,6 +209,8 @@ int rf_soapy_open_multi(char *args, void **h, uint32_t nof_rx_antennas) printf("%s=%s, ", soapy_args[i].keys[j], soapy_args[i].vals[j]); if(!strcmp(soapy_args[i].keys[j],"name") && !strcmp(soapy_args[i].vals[j], "LimeSDR-USB")){ devname = DEVNAME_LIME; + } else if (!strcmp(soapy_args[i].keys[j],"name") && !strcmp(soapy_args[i].vals[j], "LimeSDR Mini")){ + devname = DEVNAME_LIME_MINI; } } printf("\n"); diff --git a/lib/src/phy/rf/rf_soapy_imp.h b/lib/src/phy/rf/rf_soapy_imp.h index a2ccf106a..935340953 100644 --- a/lib/src/phy/rf/rf_soapy_imp.h +++ b/lib/src/phy/rf/rf_soapy_imp.h @@ -29,6 +29,7 @@ #include "srslte/config.h" #include "srslte/phy/rf/rf.h" #define DEVNAME_LIME "lime" +#define DEVNAME_LIME_MINI "lime_mini" SRSLTE_API int rf_soapy_open(char *args, void **handler);