diff --git a/source_modules/plutosdr_source/src/main.cpp b/source_modules/plutosdr_source/src/main.cpp index c63d327a..7a7db0c3 100644 --- a/source_modules/plutosdr_source/src/main.cpp +++ b/source_modules/plutosdr_source/src/main.cpp @@ -176,6 +176,9 @@ private: // Construct the device name std::string devName = '(' + backend + ") " + model + " [" + serial + ']'; + // Skip duplicate devices + if (devices.keyExists(desc) || devices.nameExists(devName) || devices.valueExists(duri)) { continue; } + // Save device devices.define(desc, devName, duri); }