Revision 42c7aaa4 host/lib/usrp/dboard/db_unknown.cpp
| b/host/lib/usrp/dboard/db_unknown.cpp | ||
|---|---|---|
| 176 | 176 |
return; |
| 177 | 177 |
|
| 178 | 178 |
case SUBDEV_PROP_ANTENNA: |
| 179 |
UHD_ASSERT_THROW(val.as<std::string>() == std::string(""));
|
|
| 180 |
return;
|
|
| 179 |
if (val.as<std::string>().empty()) return;
|
|
| 180 |
throw uhd::value_error("Unknown Daughterboard: No selectable antenna");
|
|
| 181 | 181 |
|
| 182 | 182 |
case SUBDEV_PROP_FREQ: |
| 183 | 183 |
return; // it wont do you much good, but you can set it |
| ... | ... | |
| 276 | 276 |
return; |
| 277 | 277 |
|
| 278 | 278 |
case SUBDEV_PROP_ANTENNA: |
| 279 |
UHD_ASSERT_THROW(val.as<std::string>() == std::string(""));
|
|
| 280 |
return;
|
|
| 279 |
if (val.as<std::string>().empty()) return;
|
|
| 280 |
throw uhd::value_error("Unknown Daughterboard: No selectable antenna");
|
|
| 281 | 281 |
|
| 282 | 282 |
case SUBDEV_PROP_FREQ: |
| 283 | 283 |
return; // it wont do you much good, but you can set it |
Also available in: Unified diff