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>
This commit is contained in:
Thomas Tsou 2011-08-05 12:30:19 -07:00
parent fda11abe6c
commit d71ce7c294
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}