We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 650a619 commit f1339f0Copy full SHA for f1339f0
source_modules/usrp_source/src/main.cpp
@@ -78,6 +78,10 @@ class USRPSourceModule : public ModuleManager::Instance {
78
std::string serial = devAddr["serial"];
79
std::string model = devAddr.has_key("product") ? devAddr["product"] : devAddr["type"];
80
sprintf(buf, "USRP %s [%s]", model.c_str(), serial.c_str());
81
+
82
+ // Work-around for UHD sometimes reporting the same device twice
83
+ if (devices.keyExists(serial)) { continue; }
84
85
devices.define(serial, buf, devAddr);
86
}
87
0 commit comments