laforge
/
openbts-osmo
Archived
1
0
Fork 0

uhd: output more informative error message on make failure

The device make generally only fails on failure to find an
appropriate device.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
master
Thomas Tsou 11 years ago
parent fda11abe6c
commit d71ce7c294
  1. 4
      public-trunk/Transceiver/UHDDevice.cpp

@ -344,14 +344,14 @@ bool uhd_device::open()
{
LOG(INFO) << "creating USRP device...";
// Use the first available USRP2 / N210
// Use the first available USRP2 / N2xx
uhd::device_addr_t dev_addr("type=usrp2");
try {
usrp_dev = uhd::usrp::single_usrp::make(dev_addr);
}
catch(...) {
LOG(ERROR) << "USRP make failed";
LOG(ERROR) << "Failed to find USRP2 / N2xx device";
return false;
}