host: Output all known PA types on startup.

This commit is contained in:
Alexander Chemeris
2015-05-18 00:26:10 -04:00
parent 283dae8214
commit 9a752069e7

View File

@@ -270,6 +270,14 @@ umtrx_impl::umtrx_impl(const device_addr_t &device_addr)
////////////////////////////////////////////////////////////////////
// get the atached PA type
////////////////////////////////////////////////////////////////////
std::list<std::string> pa_types = power_amp::list_pa_str();
std::string pa_list_str;
BOOST_FOREACH(const std::string &pa_str, pa_types)
{
pa_list_str += pa_str + " ";
}
UHD_MSG(status) << "Known PA types: " << pa_list_str << std::endl;
power_amp::pa_type_t pa_type = power_amp::pa_str_to_type(device_addr.cast<std::string>("pa", "NONE"));
if (_hw_rev < UMTRX_VER_2_3_1 and pa_type != power_amp::PA_NONE)
{