diff options
Diffstat (limited to 'lib/usrp/dboard')
-rw-r--r-- | lib/usrp/dboard/id.cpp | 1 | ||||
-rw-r--r-- | lib/usrp/dboard/manager.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/usrp/dboard/id.cpp b/lib/usrp/dboard/id.cpp index 0f173ef14..80162240e 100644 --- a/lib/usrp/dboard/id.cpp +++ b/lib/usrp/dboard/id.cpp @@ -24,6 +24,7 @@ using namespace uhd::usrp::dboard; std::ostream& operator<<(std::ostream &os, const dboard_id_t &id){ //map the dboard ids to string representations uhd::dict<dboard_id_t, std::string> id_to_str; + id_to_str[ID_NONE] = "none"; id_to_str[ID_BASIC_TX] = "basic tx"; id_to_str[ID_BASIC_RX] = "basic rx"; diff --git a/lib/usrp/dboard/manager.cpp b/lib/usrp/dboard/manager.cpp index f6d9a718e..4a675fd0b 100644 --- a/lib/usrp/dboard/manager.cpp +++ b/lib/usrp/dboard/manager.cpp @@ -42,6 +42,8 @@ static void register_internal_dboards(void){ static bool called = false; if (called) return; called = true; //register the known dboards (dboard id, constructor, subdev names) + manager::register_subdevs(ID_NONE, &basic_tx::make, list_of("")); //for none, make a basic tx + manager::register_subdevs(ID_NONE, &basic_rx::make, list_of("ab")); //for none, make a basic rx (one subdev) manager::register_subdevs(ID_BASIC_TX, &basic_tx::make, list_of("")); manager::register_subdevs(ID_BASIC_RX, &basic_rx::make, list_of("a")("b")("ab")); } |