diff --git a/devices/plutosdr/deviceplutosdrscan.cpp b/devices/plutosdr/deviceplutosdrscan.cpp index 79aa0aa6c..252d1af81 100644 --- a/devices/plutosdr/deviceplutosdrscan.cpp +++ b/devices/plutosdr/deviceplutosdrscan.cpp @@ -50,6 +50,19 @@ void DevicePlutoSDRScan::scan() m_scans.clear(); + // TOOD: handle this differently so that it does not impair hardware configurations without any Pluto at all + // if (num_contexts == 0) + // { + // struct iio_context *ctx = iio_create_network_context("pluto.local"); + // if(!ctx) { + // return; + // } + // m_scans.push_back({std::string("PlutoSDR"), std::string("networked"), std::string("ip:pluto.local")}); + // m_serialMap[m_scans.back().m_serial] = &m_scans.back(); + // m_urilMap[m_scans.back().m_uri] = &m_scans.back(); + // iio_context_destroy(ctx); + // } + for (i = 0; i < num_contexts; i++) { const char *description = iio_context_info_get_description(info[i]);