From 4c8b78b1b1190d99a02de58b301e624ff34758b4 Mon Sep 17 00:00:00 2001 From: marian Date: Wed, 13 Apr 2016 07:02:40 +0000 Subject: [PATCH] Additional check for Nuand's vendor and product when choosing a device to open. git-svn-id: http://yate.null.ro/svn/yate/trunk@6108 acf43c95-373e-0410-b603-e72c3f656dc1 --- modules/radio/ybladerf.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/radio/ybladerf.cpp b/modules/radio/ybladerf.cpp index 42d7c374..eee01220 100644 --- a/modules/radio/ybladerf.cpp +++ b/modules/radio/ybladerf.cpp @@ -5398,7 +5398,10 @@ unsigned int BrfLibUsbDevice::openDevice(bool claim, String* error) failedDesc++; continue; } - if (desc.idVendor == 7504 && desc.idProduct == 24678) + // OpenMoko 0x1d50 Product=0x6066 + // Nuand 0x2cf0 Product=0x5246 + if ((desc.idVendor == 0x1d50 && desc.idProduct == 0x6066) || + (desc.idVendor == 0x2cf0 && desc.idProduct == 0x5246)) m_dev = m_list[i]; } if (!m_dev) {