formatting/wording tweaks

This commit is contained in:
Rey Tucker 2017-06-26 11:15:54 -04:00 committed by Dimitri Stolnikov
parent 107b35bee3
commit a6209e3250
1 changed files with 4 additions and 3 deletions

View File

@ -48,8 +48,9 @@ using namespace boost::assign;
boost::mutex bladerf_common::_devs_mutex;
std::list<boost::weak_ptr<struct bladerf> > bladerf_common::_devs;
// name of system-wide gain
//(internal only, doesn't match any libbladeRF gain stage)
/* name of system-wide gain
* (internal only, doesn't match any libbladeRF gain stage)
*/
static const char* SYSTEM_GAIN_NAME = "system";
bladerf_common::bladerf_common() :
@ -187,7 +188,7 @@ void bladerf_common::set_loopback_mode(const std::string &loopback)
} else if (loopback == "none") {
mode = BLADERF_LB_NONE;
} 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);