From 80bdb0ea1712c5eeef798eb8ff61e24c6df9dfd8 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 20 Apr 2020 17:17:33 +0200 Subject: [PATCH] soapy: fix compilation on Soapy version < 6 --- lib/src/phy/rf/rf_soapy_imp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/phy/rf/rf_soapy_imp.c b/lib/src/phy/rf/rf_soapy_imp.c index f92211bab..f2dcd6c96 100644 --- a/lib/src/phy/rf/rf_soapy_imp.c +++ b/lib/src/phy/rf/rf_soapy_imp.c @@ -340,7 +340,10 @@ int rf_soapy_open_multi(char* args, void** h, uint32_t num_requested_channels) handler->devname = devname; // create stream args from device args - SoapySDRKwargs stream_args = SoapySDRKwargs_fromString(args); + SoapySDRKwargs stream_args = {}; +#if SOAPY_SDR_API_VERSION >= 0x00060000 + stream_args = SoapySDRKwargs_fromString(args); +#endif // Setup Rx streamer size_t num_available_channels = SoapySDRDevice_getNumChannels(handler->device, SOAPY_SDR_RX);