forked from sdr/gr-osmosdr
formatting/wording tweaks
This commit is contained in:
parent
107b35bee3
commit
a6209e3250
|
@ -48,8 +48,9 @@ using namespace boost::assign;
|
||||||
boost::mutex bladerf_common::_devs_mutex;
|
boost::mutex bladerf_common::_devs_mutex;
|
||||||
std::list<boost::weak_ptr<struct bladerf> > bladerf_common::_devs;
|
std::list<boost::weak_ptr<struct bladerf> > bladerf_common::_devs;
|
||||||
|
|
||||||
// name of system-wide gain
|
/* name of system-wide gain
|
||||||
//(internal only, doesn't match any libbladeRF gain stage)
|
* (internal only, doesn't match any libbladeRF gain stage)
|
||||||
|
*/
|
||||||
static const char* SYSTEM_GAIN_NAME = "system";
|
static const char* SYSTEM_GAIN_NAME = "system";
|
||||||
|
|
||||||
bladerf_common::bladerf_common() :
|
bladerf_common::bladerf_common() :
|
||||||
|
@ -187,7 +188,7 @@ void bladerf_common::set_loopback_mode(const std::string &loopback)
|
||||||
} else if (loopback == "none") {
|
} else if (loopback == "none") {
|
||||||
mode = BLADERF_LB_NONE;
|
mode = BLADERF_LB_NONE;
|
||||||
} else {
|
} else {
|
||||||
throw std::runtime_error( _pfx + "Invalid loopback mode:" + loopback );
|
throw std::runtime_error( _pfx + "Unknown loopback mode:" + loopback );
|
||||||
}
|
}
|
||||||
|
|
||||||
status = bladerf_set_loopback( _dev.get(), mode);
|
status = bladerf_set_loopback( _dev.get(), mode);
|
||||||
|
|
Loading…
Reference in New Issue