1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-26 20:14:19 -04:00

Speed up enumeration / opening USRP B210 by using hardcoded values.

This commit is contained in:
Jon Beniston
2023-01-15 19:45:44 +00:00
parent 0a257f393e
commit aeaf0e75c0
2 changed files with 35 additions and 11 deletions
+6
View File
@@ -71,6 +71,12 @@ bool DeviceUSRPParams::open(const QString &deviceStr, bool channelNumOnly)
m_srRangeTx = m_dev->get_tx_rates();
}
}
else if (deviceStr.contains("product=B210"))
{
// Auto-calculation below can be slow, so use hardcoded values for B210
m_srRangeRx = uhd::meta_range_t(1e5, 61.444e6);
m_srRangeTx = uhd::meta_range_t(1e5, 61.444e6);
}
else
{
// Find max and min sample rate, for max and min master clock rates